/* ==========================================================
   카페프리헷 인트로 페이지 클론
   ========================================================== */

/* Paperlogy (눈누 CDN) */
@font-face {
  font-family: 'Paperlogy';
  font-weight: 400;
  font-display: swap;
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Paperlogy';
  font-weight: 700;
  font-display: swap;
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Paperlogy';
  font-weight: 800;
  font-display: swap;
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
}

:root {
  /* 1920px 디자인 기준 스케일 단위 — js/script.js 에서 갱신됨 */
  --px: calc(100vw / 1905);
  --sc: #352115;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  height: 100svh;
  overflow: hidden;
  background-color: #000;
  font-family: 'Paperlogy', 'Pretendard Variable', Pretendard, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- 인트로 레이아웃 ---------- */

.intro {
  width: 100%;
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro_row {
  position: relative;
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
}

.intro_row01 { background-color: var(--sc); }
.intro_row02 { background-color: #000; }

.intro_row_bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.2;
  pointer-events: none;
}

.intro_row01 .intro_row_bg {
  background-image: url('../images/intro_01.jpg');
}
.intro_row02 .intro_row_bg {
  background-image: url('../images/intro_02.jpg');
}

/* ---------- 텍스트 ---------- */

.intro_row_tt_wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #fff;
  transition: transform 0.4s;
}

/* jQuery 가 마우스오버 시 .is-hover 를 토글 → 부드럽게 위로 이동 */
.intro_row.is-hover .intro_row_tt_wrap {
  transform: translateY(-10px);
}

.intro_row_tt01 {
  font-size: calc(var(--px) * 30);
  font-weight: 700;
}

.intro_row_tt02 {
  font-size: calc(var(--px) * 65);
  font-weight: 800;
}

.intro_row_tt03 {
  font-size: calc(var(--px) * 26);
  font-weight: 400;
  margin-top: 1vw;
}

/* ---------- 모바일 ---------- */

@media screen and (max-width: 599px) {
  .intro { flex-direction: column; }

  .intro_row {
    width: 100%;
    height: 50%;
  }

  .intro_row_tt01 { font-size: 6vw; }
  .intro_row_tt02 { font-size: 11vw; }
  .intro_row_tt03 {
    font-size: 5vw;
    margin-top: 3vw;
  }
}
