/* =============================================================================
   House of Photography (about) — page styles
   유지보수용 클린 버전. Tailwind 유틸 컴파일본(hop.css 23KB)을 대체.
   모든 규칙은 .hop 래퍼로 스코프 → 사이트 전역 CSS와 충돌 최소화.
   Breakpoints: sm=640 / md=768 / lg=1024 (Tailwind 기본값 그대로).
   ========================================================================== */

.hop {
  /* 색상 토큰 */
  --brown:       rgb(50, 37, 29);
  --brown-dark:  #1a1816;
  --accent:      #ff9f59;
  --ink:         #0a0a0a;      /* neutral-950 근사 */
  --text-light:  #dfdfe4;

  /* 폰트 토큰 (원본과 동일한 패밀리 문자열 유지) */
  --font-heading:   'Manrope:ExtraBold', sans-serif;
  --font-body:      'NanumSquare:Regular', sans-serif;
  --font-body-bold: 'NanumSquare:Bold', sans-serif;
  --font-bullet:    'Nanum Gothic:Regular', sans-serif;

  width: 100%;
  overflow-x: hidden;
}

/* --- 스코프 리셋 (원본 hop.css의 Tailwind preflight 중 이 페이지가 의존하던 것만) --- */
.hop *,
.hop *::before,
.hop *::after { box-sizing: border-box; }
.hop img,
.hop video   { display: block; max-width: 100%; }
.hop p       { margin: 0; }
.hop a       { color: inherit; text-decoration: none; }

/* 공통: 반응형 줄바꿈 <br class="hop-br-mobile"> — 모바일에서만 개행 */
.hop-br-mobile { display: block; }
@media (min-width: 640px) { .hop-br-mobile { display: none; } }

/* 공통 헤딩(섹션 타이틀) */
.hop-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  width: 100%;
  font-size: 26px;
}
.hop-heading--dark   { color: var(--ink); }
@media (min-width: 768px)  { .hop-heading { font-size: 36px; } }
@media (min-width: 1024px) { .hop-heading { font-size: 40px; } }

/* 공통 아이브로(강조 소제목) */
.hop-eyebrow {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.3;
  color: var(--accent);
  width: 100%;
  font-size: 26px;
}
@media (min-width: 640px)  { .hop-eyebrow { font-size: 36px; } }
@media (min-width: 1024px) { .hop-eyebrow { font-size: 38px; } }

/* 공통 본문 */
.hop-body {
  font-family: var(--font-body);
  line-height: 1.5;
  color: #fff;
  width: 100%;
  font-size: 14px;
}
@media (min-width: 640px)  { .hop-body { font-size: 18px; } }
@media (min-width: 1024px) { .hop-body { font-size: 20px; } }

/* 공통 카피 블록(세로 중앙 정렬 텍스트) */
.hop-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 25px;
}
@media (min-width: 640px) { .hop-copy { gap: 35px; } }

/* =============================================================================
   1) HERO — 자동재생 비디오 + 실패 시 <picture> 폴백
   모바일: 세로 mp4 / 데스크탑: 가로 mp4 (아트디렉션, 2소스 유지)
   ========================================================================== */
.hop-hero {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  background: #000;
  margin-top: -50px;          /* 헤더 밑으로 끌어올림 (hop-helper 대체) */
}
.hop-hero__video {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}
.hop-hero__fallback,
.hop-hero__fallback img { width: 100%; height: auto; pointer-events: none; }

@media (min-width: 640px)  { .hop-hero { aspect-ratio: 2 / 3; } }
@media (min-width: 720px)  { .hop-hero { margin-top: -60px; } }
@media (min-width: 768px)  { .hop-hero { aspect-ratio: 768 / 964; } }
@media (min-width: 960px)  { .hop-hero { margin-top: -98px; } }
@media (min-width: 1024px) { .hop-hero { aspect-ratio: auto; height: 100dvh; } }

/* =============================================================================
   2) WHAT'S ON — 흰 배경, 배너 2개 (모바일 세로 → 데스크탑 가로)
   ========================================================================== */
.hop-whats-on {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 30px;
  padding: 40px 0;
  width: 100%;
}
@media (min-width: 768px)  { .hop-whats-on { gap: 40px; padding: 60px 0; align-items: center; } }
@media (min-width: 1024px) { .hop-whats-on { gap: 50px; padding: 80px 0; } }

.hop-whats-on__title { width: 100%; max-width: 1130px; margin: 0 auto; text-align: center; }

.hop-whats-on__container { width: 95%; margin: 0 auto; }
@media (min-width: 1024px) { .hop-whats-on__container { width: 80%; } }

.hop-whats-on__grid { display: flex; flex-direction: column; gap: 20px; width: 100%; }
@media (min-width: 1024px) { .hop-whats-on__grid { flex-direction: row; } }

/* --- What's On 배너 (마크업 기반: 배경 사진 1장 + 텍스트/라벨/화살표는 HTML) ---
   브레이크포인트별 이미지 6장 → 배너당 배경 1장. 문구는 마크업이라 이미지 재추출 불필요.
   배너 비율만 CSS로 바꾸고, 단일 배경은 object-fit:cover 로 채움. */
.hop-banner {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 64 / 50;          /* 모바일 */
  background: #25221f;
  color: #fff;
  isolation: isolate;
}
@media (min-width: 768px)  { .hop-banner { aspect-ratio: 100 / 51; } }               /* 태블릿(가로 배너) */
@media (min-width: 1024px) { .hop-banner { flex: 1 1 0; min-width: 0; aspect-ratio: 111 / 90; } } /* 데스크탑(2단) */

.hop-banner__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }

/* 가독성 스크림 (사진 위 흰 텍스트) */
.hop-banner::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.30) 42%, rgba(0,0,0,0) 72%),
    linear-gradient(to right, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 55%);
}
.hop-banner--program::after {
  background:
    linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.22) 46%, rgba(0,0,0,0) 74%),
    linear-gradient(to right, rgba(0,0,0,.40) 0%, rgba(0,0,0,0) 52%);
}

/* 세로 사이드 라벨 */
.hop-banner__tag {
  position: absolute; top: 0; bottom: 0; z-index: 3; width: 38px;
  display: flex; justify-content: center;      /* 가로 중앙 */
  padding: 26px 0;                              /* 위/아래 여백 */
  font-family: var(--font-heading); font-weight: 800; letter-spacing: .06em;
  font-size: 15px; color: #fff;
}
.hop-banner__tag-txt { writing-mode: vertical-rl; }
@media (min-width: 1024px) { .hop-banner__tag { width: 52px; font-size: 18px; padding: 30px 0; } }
/* Library(왼쪽·빨강): 하단 정렬 + 아래→위 읽기 */
.hop-banner--library .hop-banner__tag     { left: 0; background: #e60027; align-items: flex-end; }
.hop-banner--library .hop-banner__tag-txt { transform: rotate(180deg); }
/* Program(오른쪽·초록): 상단 정렬 + 위→아래 읽기 */
.hop-banner--program .hop-banner__tag     { right: 0; background: #8fd3b1; align-items: flex-start; }

/* 텍스트 블록 (하단 좌측) */
.hop-banner__body {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: row; align-items: flex-end; gap: 16px;
  padding: 24px 24px 24px 62px;              /* 좌측: 사이드라벨 폭 + 여유 */
}
@media (min-width: 1024px) { .hop-banner__body { gap: 20px; padding: 34px 34px 38px 84px; } }
.hop-banner--program .hop-banner__body { padding: 24px 62px 24px 24px; }              /* 라벨이 오른쪽 */
@media (min-width: 1024px) { .hop-banner--program .hop-banner__body { padding: 34px 84px 38px 34px; } }

/* 텍스트 컬럼 (화살표와 별도 컬럼 → 문구 길이와 무관하게 겹침 없음) */
.hop-banner__text {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 6px;
}
@media (min-width: 1024px) { .hop-banner__text { gap: 7px; } }

/* 아이브로우: Figma처럼 가볍고 작게(문장형) — 굵은 대문자 강조 아님 */
.hop-banner__eyebrow { font-family: var(--font-body); font-weight: 500; letter-spacing: .01em;
  color: rgba(255,255,255,.95); font-size: clamp(13px, 1.3vw, 15px); }
/* 타이틀: 굵게, 흰색(전역 h3 색상 덮어쓰기 방지), 아이브로우 바로 아래 */
.hop-banner__title { font-family: var(--font-body-bold); font-weight: 700; line-height: 1.3;
  color: #fff; font-size: clamp(23px, 3vw, 31px); }
/* 디스크립션: 타이틀 아래 약간의 여백 */
.hop-banner__desc { font-family: var(--font-body); line-height: 1.6; color: rgba(255,255,255,.9);
  margin-top: 8px; font-size: clamp(13px, 1.4vw, 16px); }
.hop-banner__credit { font-family: var(--font-body); color: rgba(255,255,255,.8); margin-top: 6px;
  font-size: clamp(11px, 1.1vw, 13px); }

/* 화살표 버튼 */
.hop-banner__arrow {
  flex: none; align-self: flex-end;                              /* 별도 컬럼, 본문 하단선에 정렬 */
  width: 50px; height: 50px; border: 1.5px solid rgba(255,255,255,.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hop-banner__arrow::after { content: "\2192"; font-size: 20px; line-height: 1; color: #fff; }
@media (min-width: 1024px) {
  .hop-banner__arrow { width: 58px; height: 58px; }
  .hop-banner__arrow::after { font-size: 24px; }
}
.hop-banner:hover .hop-banner__arrow { background: rgba(255,255,255,.15); }

/* =============================================================================
   3) SKETCH — 풀블리드 단일 이미지
   ========================================================================== */
.hop-sketch { position: relative; width: 100%; }
.hop-sketch__img { width: 100%; height: auto; }

/* =============================================================================
   4) OVERVIEW — 브라운 배경, 카피 + 포토(둥근 세로 + 와이드)
   ========================================================================== */
.hop-overview {
  position: relative;
  width: 100%;
  background: var(--brown);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 60px 0 0;
}
@media (min-width: 640px)  { .hop-overview { gap: 60px; padding-top: 100px; } }
@media (min-width: 1024px) { .hop-overview { gap: 80px; padding-top: 140px; } }

.hop-overview__photos {
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
  width: 100%;
}

/* 둥근 상단 세로 포토 (앞) */
.hop-overview__portrait {
  position: relative;
  z-index: 2;
  width: 288px;
  height: 360px;
  margin-bottom: -60px;
  border-top-left-radius: 300px;
  border-top-right-radius: 300px;
}
.hop-overview__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-top-left-radius: 300px;
  border-top-right-radius: 300px;
}
@media (min-width: 640px)  { .hop-overview__portrait { width: 400px; height: 500px; margin-bottom: -120px; } }
@media (min-width: 1024px) { .hop-overview__portrait { width: 480px; height: 600px; margin-bottom: -160px; } }

/* 와이드 포토 (뒤) — 단일 이미지, CSS object-fit로 브레이크포인트 대응 */
.hop-overview__wide { position: relative; z-index: 1; width: 100%; }
.hop-overview__wide img { width: 100%; height: auto; object-fit: cover; }

/* =============================================================================
   5) SPECIAL EXPERIENCE — 브라운 배경, 카피 + 와이드 이미지
   ========================================================================== */
.hop-special {
  position: relative;
  width: 100%;
  background: var(--brown);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hop-special__inner { width: 100%; margin: 0 auto; }
@media (min-width: 768px) { .hop-special__inner { width: 80%; } }

.hop-special__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 25px;
  margin: 20px 0 60px;
}
@media (min-width: 640px)  { .hop-special__copy { gap: 35px; margin-bottom: 40px; } }
@media (min-width: 1024px) { .hop-special__copy { margin-top: 60px; } }

.hop-special__images {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  isolation: isolate;
}
.hop-special__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1360 / 600;
  margin-bottom: -60px;
}
.hop-special__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}
.hop-special__spacer { padding-bottom: 60px; }
@media (min-width: 640px)  { .hop-special__image { margin-bottom: -120px; } .hop-special__spacer { padding-bottom: 120px; } }
@media (min-width: 1024px) { .hop-special__image { margin-bottom: -160px; } .hop-special__spacer { padding-bottom: 160px; } }

/* special 본문의 브레이크포인트별 줄 표시
   모바일(<768): 문장을 2줄로 쪼갠 line--b 만 표시 (line1 + 2줄 = 3줄)
   데스크탑(≥768): 한 줄짜리 line--a 만 표시 (line1 + 1줄 = 2줄)
   ※ 원본은 line--a 가 <640 에서도 노출돼 문장이 중복되던 버그 → 여기서 수정 */
.hop-line--a { display: none; }
@media (min-width: 768px) { .hop-line--a { display: block; } }
.hop-line--b { display: block; }
@media (min-width: 768px) { .hop-line--b { display: none; } }

/* =============================================================================
   6) MAP — 브라운 배경, 지도 + 주소 패널 (모바일 세로 / 데스크탑 가로)
   ========================================================================== */
.hop-map {
  position: relative;
  width: 100%;
  background: var(--brown);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 40px;
}
@media (min-width: 640px)  { .hop-map { gap: 60px; } }
@media (min-width: 768px)  { .hop-map { padding-bottom: 120px; } }
@media (min-width: 1024px) { .hop-map { gap: 80px; padding-bottom: 140px; } }

.hop-map__inner { width: 100%; margin: 0 auto; }
@media (min-width: 768px) { .hop-map__inner { width: 80%; } }

.hop-map__wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  background: var(--brown);
}
@media (min-width: 768px) { .hop-map__wrap { flex-direction: row; } }

.hop-map__media {
  order: 2;
  width: 100%;
  position: relative;
  min-width: 0;
  aspect-ratio: 1000 / 550;
  background: var(--brown);
}
.hop-map__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px)  { .hop-map__media { order: 1; flex: 0 1 60%; } }
@media (min-width: 1024px) { .hop-map__media { flex: 0 1 65%; } }

.hop-map__address {
  order: 1;
  background: var(--brown-dark);
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  flex: none;
  padding: 30px 10px;
  text-align: center;
  align-self: stretch;
}
@media (min-width: 640px)  { .hop-map__address { padding: 20px; } }
@media (min-width: 768px)  { .hop-map__address { order: 2; flex: 0 0 40%; text-align: left; } }
@media (min-width: 1024px) { .hop-map__address { flex: 0 0 35%; padding: 30px; } }

.hop-map__name {
  font-family: var(--font-body-bold);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  width: 100%;
  font-size: 16px;
}
@media (min-width: 1024px) { .hop-map__name { font-size: 20px; } }
/* 주소 제목 줄바꿈: <640 개행, 640–767 한 줄, ≥768 개행 (원본 동작) */
.hop-map__name br { display: block; }
@media (min-width: 640px) { .hop-map__name br { display: none; } }
@media (min-width: 768px) { .hop-map__name br { display: block; } }

.hop-map__info {
  font-family: var(--font-body);
  color: var(--text-light);
  width: 100%;
  font-size: 12px;
}
@media (min-width: 768px)  { .hop-map__info { font-size: 11px; } }
@media (min-width: 1024px) { .hop-map__info { font-size: 16px; } }
.hop-map__info p { line-height: 1.5; margin: 0; }
.hop-bullet { font-family: var(--font-bullet); color: var(--text-light); }

/* =============================================================================
   스크롤 등장 애니메이션 (progressive enhancement)
   기본 상태 = 보임(opacity:1). JS가 IntersectionObserver 지원을 확인하면
   .hop 에 .reveal-enabled 를 붙여 시작 상태를 숨김으로 전환 → 스크롤 시 등장.
   JS 미실행/미지원 시 콘텐츠는 항상 보임 (hero·핵심 콘텐츠 숨김 사고 방지).
   ========================================================================== */
.hop.reveal-enabled .reveal__item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1),
              transform .8s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.hop.reveal-enabled .reveal__item--h[data-align="left"]  { transform: translateX(-60px); }
.hop.reveal-enabled .reveal__item--h[data-align="right"] { transform: translateX(60px); }
.hop.reveal-enabled .reveal__item--fade { transform: none; }
.hop.reveal-enabled .reveal__item.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .hop.reveal-enabled .reveal__item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
