/* ✅ 페이지 스크롤 잠금 (배경/프레임은 그대로) */
/* ----------------------------------
   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;
}


html, body { height: 100%; margin: 0; overflow: hidden; }

/* ✅ 패널(영상 위치와 동일 좌표/폭) — wrapper 기준 absolute */
.hero{
  position: absolute;
  top: 56%;                   /* ← 너의 video-container 값 그대로 */
  left: 50%;
  transform: translate(-50%, -45%);
  width: 45vw;                /* ← video-container 와 동일 */
  max-width: 1200px;
  height: 62%;                /* 패널 높이(필요시 58~66%로 미세조정) */
  display: grid;
  place-items: stretch;
  z-index: 10;                /* 코너/헤더보다 아래면 10, 위면 더 크게 */
  pointer-events: none;       /* 빈 영역은 클릭 통과 */
}

/* ✅ 파란 박스 본체: 내부만 스크롤 */
.panel{
  pointer-events: auto;       /* 패널 내부는 스크롤/선택 가능 */
  width: 90%;
  height: 100%;               /* hero 영역 가득 채움 */
  overflow-y: auto;           /* ✨ 내부 스크롤 핵심 */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  padding:0rem 2rem 2rem 2rem;
  background: #3b44b3;
  color: #e8ecff;
  border-radius: 18px;
  line-height: 1.8;
}

/* 붙여넣은 본문 개행 유지 */
.panel p { white-space: pre-wrap; 
font-family: "AlcalaTrial";
  src: url("fonts/AlcalaTrial-Roman.woff") format("woff");
  font-weight: 300;
  font-style: normal ;}
/* ----------------------------------
   BLUR TEXT EFFECT
/* ----------------------------------
   BLUR TEXT EFFECT
---------------------------------- */
.word {
  display: inline-block;
  transition: filter 0.6s ease-in-out;
}

/* 블러 상태 */
.word.blur {
  filter: blur(4px);
}

/* Hover 시 즉시 또렷하게 */
.word:hover {
  filter: blur(0);
  transition: filter 0.2s ease-in-out;
}
