/* ----------------------------------
   GLOBAL / BACKGROUND
---------------------------------- */
html, body { height: 100%; margin: 0; }

/* 스크롤해도 항상 보이는 백그라운드 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("bg_01.png") center/cover no-repeat;
}

/* 기본 레이아웃 */
body {
  background: #3b44b3;
  font-family: "freight-big-pro", serif;
  height: 100vh;
  display: grid;
  place-items: center;
}

/* ----------------------------------
   WRAPPER / TEXT
---------------------------------- */
.wrapper {
  aspect-ratio: 16 / 9;
  width: 90vw;
  max-height: 90vh;
  position: relative;
  display: grid;
  place-items: center;
}

/* 웹폰트 */
@font-face {
  font-family: "LeopardoTrial";
  src: url("fonts/LeopardoTrial-LightItalic.woff") format("woff");
  font-weight: 300;
  font-style: italic;
}

/* 콘텐츠 묶음: 세로 중앙 + 큰 간격 */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20rem, 24vh, 34rem);
  text-align: center;
  color: #fff;
}
/* single-line 페이지용 */
.single-line {
  display: flex;

  align-items: flex-start; /* 중앙 대신 위쪽 정렬 */
  text-align: center;
  color: #ffffff;
  height: 100vh;          /* 화면 전체 기준 */
  padding-top: 8vh;       /* 🔹위쪽 여백 조정: 10vh → 8vh */
}

.single-line h1 {
  font-family: "LeopardoTrial", serif;  /* 메인 텍스트 */
  font-style: italic;
  font-weight: 300;
  margin: 0;
  font-size: clamp(2rem, 4vw, 5rem);
  line-height: 1.1;
  white-space: nowrap;   /* 한 줄 유지 */
}

/* Moyra Davey 이름만 다른 폰트로 */
.single-line .author {
  font-family: "freight-display-pro", serif;
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.02em;
}

.corner {
  position: absolute;
  width: clamp(48px, 4vw, 80px);  /* ✅ 인덱스와 동일 */
  height: clamp(48px, 4vw, 80px);
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-template-rows: repeat(3,1fr);
  gap: 0;
}

/* 위치 */
.br { bottom: 0%; right: 1%; }

/* 사각형 공통 */
.sq {
  width: 100%;
  height: 100%;
  background: #fff;
  box-sizing: border-box;
}

/* 배치 */
.corner .sq:nth-child(1){ grid-area:1/1; }
.corner .sq:nth-child(2){ grid-area:1/3; }
.corner .sq:nth-child(3){ grid-area:2/2; }
.corner .sq:nth-child(4){ grid-area:3/1; }
.corner .sq:nth-child(5){ grid-area:3/3; }

/* 전체 링크 */
.corner-link {
  text-decoration: none;
  cursor: pointer;
}

/* hover 시 피드백 */
.corner-link:hover .sq,
.corner-link:focus-visible .sq {
  background: #3b44b3;
  outline: none;
}

/* ----------------------------------
   VIDEO
---------------------------------- */
.video-container {
  position: absolute;
  top: 56%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45vw;          /* 비율 유지, 필요시 60~80vw 사이 조절 */
  max-width: 1200px;    
  aspect-ratio: 16 / 9;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container video {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  border-radius: 0;
  object-fit: cover;
  background: #3b44b3; /* 로딩 중에도 배경색 유지 */
}

html, body {
  overflow: hidden;
}
.panel {
  overflow: hidden;   /* 스크롤 완전히 차단 */
}