/* ARTE J — 주 레퍼런스 Hotel du Tasso 값(review/page-reference.md)을 옮김 */
:root {
  --sky: #E0EFFE;      /* bBiscay100 */
  --cream: #FAF7F1;    /* bTwine50 */
  --brown: #72402D;    /* cTwine900 */
  --navy: #0B406F;
  --gold: #DCB47A;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-io: cubic-bezier(0.575, 0.005, 0.285, 1.005);
  --vh: 1vh;           /* 카카오톡 화면 높이 고정: js에서 px로 한 번 정함 */
  --ko-brand: 'HadaBatang', 'HappinessSans', serif;
  --ko-body: 'HappinessSans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--sky);
  color: var(--brown);
  font-family: var(--ko-body);
  font-weight: 400;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[data-en] { font-family: 'Karla', sans-serif; }

/* 메뉴·버튼 언어 바꾸기(시안 전용) */
.t-ko { display: none; }
body.lang-ko .t-en { display: none; }
body.lang-ko .t-ko { display: inline; font-family: var(--ko-body); letter-spacing: 0; }

/* 로고: 받은 검정 로고를 갈색으로(마스크) */
.logo-mark {
  display: block; width: 100%; aspect-ratio: 1703 / 354;
  background: var(--brown);
  -webkit-mask: url('../img/logo-black.png') center / contain no-repeat;
          mask: url('../img/logo-black.png') center / contain no-repeat;
}

/* ───────── 머리 막대 ───────── */
#hdr {
  position: fixed; top: 0; left: 0; z-index: 20;
  width: 100%; height: 96px; padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250, 247, 241, 0.5);
  border-bottom: 2.5px solid var(--gold);
  transform: translateY(-100%);
  transition: transform 800ms var(--ease);
}
#hdr.show { transform: none; }
.hdr-left, .hdr-right { flex: 1; display: flex; }
.hdr-right { justify-content: flex-end; }
.hdr-logo { width: 9vw; max-width: 140px; }
.hbtn {
  position: relative; height: 68px; min-width: 96px; padding: 0 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cream);
}
.hbtn-wide { min-width: 191px; }
.hbtn-frame, .hbtn-frame::after {
  position: absolute; inset: 0; border: 1px solid var(--gold); pointer-events: none;
}
.hbtn-frame::after { content: ""; inset: 5px; transition: inset 600ms var(--ease); }
.hbtn-label {
  position: relative; font-size: 16px; font-weight: 450; letter-spacing: 0.05em; line-height: 35px; overflow: hidden;
}
.hbtn-label::after { /* 레퍼런스 .menuButton:hover::after: 밑줄이 그려짐 */
  content: ""; position: absolute; left: 0; bottom: 6px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 1000ms var(--ease);
}
.hbtn:hover .hbtn-label::after { transform: none; }
.hbtn:hover .hbtn-frame::after { inset: 3px; } /* 추가: 안쪽 테두리가 살짝 벌어짐 */

/* ───────── 메뉴(전체 화면) ───────── */
#menu {
  position: fixed; inset: 0; z-index: 30; display: flex;
  background: var(--cream); visibility: hidden; opacity: 0;
  transition: opacity 700ms var(--ease), visibility 0s 700ms;
}
body.menu-on #menu { visibility: visible; opacity: 1; transition: opacity 700ms var(--ease); }
.menu-col { position: relative; width: 25vw; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 12vh 5vw; }
.menu-col::after { /* 금색 2px 기둥 선, 위에서 아래로 그려짐 */
  content: ""; position: absolute; top: 0; right: 0; width: 2px; height: 100%;
  background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform 1500ms var(--ease-io);
}
.menu-col::before { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; transition: opacity 1000ms var(--ease); }
.menu-col:hover::before { opacity: 0.6; }
body.menu-on .menu-col::after { transform: none; }
.menu-link { position: relative; display: block; overflow: hidden; margin: 0.5vw 0; font-family: 'Parisian', serif; font-size: 2.2vw; line-height: 1.4; letter-spacing: 0.05em; }
.menu-link > span { display: block; transform: translateY(101%); transition: transform 1500ms var(--ease); }
body.menu-on .menu-link > span { transform: none; }
body.menu-on .menu-col:nth-child(1) .menu-link:nth-child(1) > span { transition-delay: 150ms; }
body.menu-on .menu-col:nth-child(1) .menu-link:nth-child(2) > span { transition-delay: 200ms; }
body.menu-on .menu-col:nth-child(1) .menu-link:nth-child(3) > span { transition-delay: 250ms; }
body.menu-on .menu-col:nth-child(2) .menu-link:nth-child(1) > span { transition-delay: 300ms; }
body.menu-on .menu-col:nth-child(2) .menu-link:nth-child(2) > span { transition-delay: 350ms; }
body.menu-on .menu-col:nth-child(3) .menu-link:nth-child(1) > span { transition-delay: 400ms; }
body.menu-on .menu-col:nth-child(3) .menu-link:nth-child(2) > span { transition-delay: 450ms; }
.menu-pic { padding: 0; }
.menu-pic::after { display: none; }
.menu-pic img { width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 100% 0); transition: clip-path 1500ms var(--ease-io) 200ms; }
body.menu-on .menu-pic img { clip-path: inset(0 0 0 0); }
.menu-close { position: absolute; top: 34px; left: 5vw; font-family: 'Karla', sans-serif; font-size: 16px; font-weight: 450; letter-spacing: 0.05em; }

/* ───────── 0. 첫 화면 ───────── */
.sec-hero { position: relative; height: calc(var(--vh) * 100); background: var(--sky); overflow: hidden; }
.hero-bg {
  position: absolute; top: 2.5vw; left: 2.5vw; width: 95vw; height: calc(100% - 5vw);
  background: #fff; transform: scale(1.2); transition: transform 3000ms var(--ease);
}
.go .hero-bg { transform: none; }
.hero-layer { position: relative; width: 95vw; height: calc(100% - 5vw); margin: 2.55vw auto 0; }
.hero-logo {
  position: absolute; width: 9vw; left: calc(50% - 4.5vw); top: 2.5vw;
  transform: translateY(50px); opacity: 0; transition: transform 1500ms var(--ease), opacity 1500ms var(--ease);
}
.go .hero-logo { transform: none; opacity: 1; }
.hero-pic { position: absolute; left: 5vw; top: 5vw; width: 12.5vw; height: 17.5vw; }
.hero-video {
  position: absolute; right: 2.5vw; bottom: 2.5vw; width: 25vw; height: calc(100% - 10vw);
  max-width: calc(var(--vh) * 50); max-height: 35vw;
}
.hero-pic img, .hero-video img, .hero-video video { width: 100%; height: 100%; object-fit: cover; }
.hero-video img, .hero-video video { object-position: 50% 45%; }
.rise-far { transform: translateY(20vw); opacity: 0; transition: transform 3000ms var(--ease), opacity 3000ms var(--ease); }
.go .rise-far { transform: none; opacity: 1; }
.go .hero-video { transition-delay: 100ms; }
.hero-text { position: absolute; bottom: 0; left: 5vw; height: calc(100% - 22.5vw); max-height: 30vw; display: flex; align-items: center; }
.macro {
  font-family: 'Parisian', serif; font-weight: 400; font-size: 4.8vw; line-height: 6.25vw;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.macro .br { display: block; height: 0; }
/* 단어 떠오름(레퍼런스 top_low: 20px 아래·투명 → 제자리, 3초, 0.1초 간격) */
.macro .w { display: inline-block; transform: translateY(20px); opacity: 0.01; transition: transform 3000ms var(--ease), opacity 3000ms var(--ease); transition-delay: var(--d, 0ms); }
.show .macro .w, .go .hero-text .macro .w { transform: none; opacity: 1; }
.hero-text .macro .w { transition-delay: calc(var(--d, 0ms) + 1200ms); }

.scroll-down { position: absolute; width: 108px; height: 83px; bottom: 1.75vw; left: calc(50% - 54px); display: flex; flex-direction: column; align-items: center; z-index: 1; }
.sd-circle { width: 50px; height: 50px; }
.sd-circle circle { fill: none; stroke: var(--brown); stroke-width: 1; stroke-dasharray: 142px; stroke-dashoffset: 142px; transition: stroke-dashoffset 1500ms var(--ease-io) 1300ms; }
.go .sd-circle circle { stroke-dashoffset: 0; }
.sd-arrow { position: absolute; top: 20px; left: calc(50% - 5px); width: 14px; height: 10px; transform: rotate(90deg); fill: none; stroke: var(--brown); stroke-width: 1; }
.sd-label { display: block; overflow: hidden; margin-top: 6px; font-size: 16px; font-weight: 300; letter-spacing: 0.05em; white-space: nowrap; }
.sd-label > span { display: inline-block; transform: translateY(101%); transition: transform 800ms var(--ease) 1600ms; }
.go .sd-label > span { transform: none; }
.sd-label > span.t-ko { display: none; }
body.lang-ko .sd-label > span.t-en { display: none; }
body.lang-ko .sd-label > span.t-ko { display: inline-block; }
.scroll-down:hover .sd-arrow { animation: nudge 900ms var(--ease) infinite; } /* 추가: 화살표가 살짝 내려갔다 옴 */
@keyframes nudge { 50% { transform: rotate(90deg) translateX(5px); } }

/* ───────── 1. 소개 문장 + 화면 가득 사진 ───────── */
.sec-intro { background: var(--sky); }
.intro-text { padding: 5vw 0 10vw; width: 50vw; margin: 0 auto; text-align: center; }
.lead { font-family: var(--ko-brand); font-weight: 400; font-size: 1.75vw; line-height: 3.5vw; letter-spacing: -0.01em; }
.ln { display: block; overflow: hidden; }
.mbr { display: none; } /* 휴대폰 전용 줄바꿈 */
.ln > span { white-space: nowrap; }
body.lang-ko .menu-link .t-ko { font-family: var(--ko-brand); letter-spacing: -0.01em; }
.ln > span { display: block; transform: translateY(101%); transition: transform 2000ms var(--ease); }
.reveal-lines.show .ln > span { transform: none; }
.reveal-lines .ln:nth-child(2) > span { transition-delay: 100ms; }
.reveal-lines .ln:nth-child(3) > span { transition-delay: 200ms; }
.full-pic { position: relative; height: calc(var(--vh) * 125); overflow: hidden; }
@media (max-width: 1440px) { .full-pic { height: calc(var(--vh) * 90); } }

/* ───────── 휴대폰 (레퍼런스 768px 기준) ───────── */
@media (max-width: 768px) {
  #hdr { height: 60px; padding: 0 20px; }
  .hbtn { height: 48px; min-width: 67px; padding: 0 12px; }
  .hbtn-wide { min-width: 104px; }
  .hbtn-label { font-size: 13px; }
  .hdr-logo { width: 96px; }
  #menu { flex-direction: column; overflow-y: auto; }
  .menu-col { width: 100%; height: auto; padding: 22px 30px; justify-content: flex-start; }
  .menu-col:first-child { padding-top: 96px; }
  .menu-col::after { top: auto; bottom: 0; width: 100%; height: 2px; transform: scaleX(0); transform-origin: left; }
  body.menu-on .menu-col::after { transform: none; }
  .menu-link { font-size: 28px; margin: 6px 0; }
  .menu-pic { display: none; }
  .menu-close { top: 20px; left: 30px; font-size: 13px; }

  .sec-hero { height: calc(var(--vh) * 100); }
  .hero-bg { top: 0; left: 0; width: 100%; height: 100%; z-index: 3; transform: none; transition: opacity 2000ms var(--ease-io) 100ms; pointer-events: none; }
  .go .hero-bg { opacity: 0; }
  .hero-layer { width: 100%; height: 100%; margin: 0; }
  .hero-logo { width: 130px; left: calc(50% - 65px); top: 34px; z-index: 2; }
  .hero-logo .logo-mark { background: #fff; }
  .hero-pic { display: none; }
  .hero-video { left: 0; top: 0; right: auto; bottom: auto; width: 100%; height: 100%; max-width: none; max-height: none; transform: none; opacity: 0; transition: opacity 1000ms var(--ease) 600ms; }
  .go .hero-video { opacity: 1; }
  .hero-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(360deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.5) 20.65%, rgba(0,0,0,0) 80%); }
  .hero-text { top: calc(50% - 56px); bottom: auto; left: 50%; transform: translateX(-50%); width: 90%; height: auto; max-height: none; justify-content: center; text-align: center; z-index: 1; }
  .macro { font-size: min(40px, 10.4vw); line-height: 1.5; color: #fff; }
  .scroll-down { bottom: 30px; }
  .sd-circle circle, .sd-arrow { stroke: #fff; }
  .sd-label { color: #fff; margin-top: 0; }

  .intro-text { width: 100%; padding: 60px 15px 60px; }
  .lead { font-size: 20px; line-height: 45px; }
  .intro-text .ln { display: inline; overflow: visible; }
  .mbr { display: inline; }
  .intro-text .ln > span { display: inline; transform: none; transition: opacity 2000ms var(--ease); opacity: 0; }
  .intro-text.show .ln > span { opacity: 1; }
  .full-pic { height: 75vw; }
}
