@charset "UTF-8";
/* =========================================================
   motion.css — GSAP / Lenis 動態相關樣式
   ========================================================= */

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
/* Lenis 啟用時關閉原生 smooth scroll，避免雙重平滑 */
html.lenis, .lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  overflow: hidden;
  background: #6587a1;
  color: var(--c-cream);
}
.js-motion .loader { display: block; }
.is-loading { overflow: hidden; }

/* 上方資訊列 */
.loader .topBox {
  position: absolute;
  top: 3.2rem;
  left: 4.8rem;
  right: 4.8rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-en);
  font-weight: 300;
  font-size: max(1.2rem, 11px);
  letter-spacing: .24em;
  color: rgba(243, 241, 238, .75);
}

/* 中央照片框：5 張疊放，逐張 clip-path 由左往右展開 */
.loaderImgs {
  position: absolute;
  top: 42%;
  left: 50%;
  width: min(36vh, 34vw);
  aspect-ratio: 4 / 5;
  transform: translate(-50%, -50%);
}
.loaderImgs .imgWrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}
.loaderImgs img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }

/* 底部大字標誌：灰底 + 白字疊層（透明度＝讀取進度） */
.loader .markBox {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.14em;
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 15.6vw;
  line-height: 1;
  letter-spacing: -.02em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.loader .mark { margin: 0; }
.loader .mark--base { color: rgba(243, 241, 238, .2); }
/* 白字層：以 clip-path 由左往右展開（寬度＝讀取進度），不用透明度避免看起來模糊 */
.loader .mark--fill { position: absolute; inset: 0; color: var(--c-cream); clip-path: inset(0 100% 0 0); }
.loader .mark .ch { display: inline-block; }
.loader .topBox .decotitle { clip-path: inset(0 100% 0 0); }

@media (max-width: 1023px) {
  .loader .topBox { top: 2rem; left: 2rem; right: 2rem; }
  .loaderImgs { top: 44%; width: 62vw; }
  .loader .markBox { font-size: 16vw; bottom: -.1em; }
}

/* ---------- custom cursor ---------- */
/* 效能：不用 mix-blend-mode / backdrop-filter（會讓整頁每幀重新合成），
   尺寸變化只用 transform: scale，不改 width/height */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  pointer-events: none;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s;
}
.cursor::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--c-blue);
  border: 1px solid rgba(255, 255, 255, .7);
  transform: scale(.1);
  transition: transform .45s var(--ease), background .3s, border-color .3s;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-link::before { transform: scale(.55); background: rgba(101, 135, 161, .25); border-color: var(--c-blue); }
.cursor.is-view::before { transform: scale(1); background: rgba(255, 255, 255, .92); border-color: transparent; }
.cursor.is-hidden { opacity: 0; }
.cursor .label { position: relative; font-family: var(--ff-en); font-size: 12px; letter-spacing: .14em; color: var(--c-blue-dark); opacity: 0; transition: opacity .3s; }
.cursor.is-view .label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- SplitText mask ---------- */
.splitMask { overflow: hidden; display: inline-block; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.splitChar, .splitWord { display: inline-block; }

/* ---------- hero video ---------- */
.bannerArea .bgBox { overflow: hidden; }
.bannerArea .heroVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03); /* 裁掉影片檔底部的黑線（GSAP 進場後也停在 1.03） */
  background: #8aa5b9 url(../images/banner.jpg) center / cover;
}
.bannerArea .shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 35, 48, .35) 0%, rgba(20, 35, 48, 0) 35%),
    linear-gradient(0deg, rgba(20, 35, 48, .35) 0%, rgba(20, 35, 48, 0) 40%),
    rgba(20, 35, 48, .12);
  pointer-events: none;
}
.bannerArea .wrap { position: relative; z-index: 2; }
.bannerArea .title .splitMask { padding-bottom: .12em; }

.heroUi {
  position: absolute;
  left: 8.8rem;
  right: 8.8rem;
  bottom: 5rem;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: #fff;
}
.soundBtn { display: inline-flex; align-items: center; gap: 1.2rem; font-family: var(--ff-en); font-size: max(1.2rem, 11px); letter-spacing: .2em; }
.soundBtn .bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.soundBtn .bars b { width: 2px; height: 100%; background: currentColor; animation: eq 1s ease-in-out infinite; }
.soundBtn .bars b:nth-child(2) { animation-delay: -.3s; }
.soundBtn .bars b:nth-child(3) { animation-delay: -.6s; }
.soundBtn.is-paused .bars b { animation-play-state: paused; height: 40%; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.soundBtn .bars b { transform-origin: bottom; }

/* 置中（不用 transform，避免與磁吸效果衝突） */
.scrollHint { position: absolute; left: 0; right: 0; bottom: 0; width: fit-content; margin: 0 auto; }
.scrollHint { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; font-family: var(--ff-en); font-size: max(1.2rem, 11px); letter-spacing: .2em; }
.scrollHint i { position: relative; width: 1px; height: 6rem; min-height: 40px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.scrollHint i::after { content: ""; position: absolute; inset: 0; background: #fff; animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* =========================================================
   aboutArea — pin 切換
   ========================================================= */
.aboutArea { position: relative; overflow: hidden; }
.aboutMedia { position: relative; }
.aboutMedia .swapImg,
.swapMedia .swapImg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.swapMedia { position: relative; }
/* 進場縮放用的內層（與 pin 切換的 img 動畫分開，互不干擾） */
.aboutMedia .mediaInner,
.swapMedia .mediaInner { position: absolute; inset: 0; overflow: hidden; }
.swapBox { display: grid; }
.swapBox > .swapItem { grid-area: 1 / 1; }
.swapItem .title, .swapItem .subtitle { overflow: hidden; }

/* 無動態時只顯示第一組 */
html:not(.js-motion) .swapImg:not(:first-child),
html:not(.js-motion) .swapItem:not(:first-child) { display: none; }

/* 時間區塊：指針由 GSAP 控制 */
.js-motion .tagBox .pointer { transition: none; }

/* 體驗列表：GSAP 無限輪播 */
.js-motion .expBox { overflow: hidden; }
.js-motion .expBox .dataList { overflow: visible; padding: 0; scroll-snap-type: none; touch-action: pan-y; will-change: transform; }
.js-motion .expBox .dataList .dataItem { scroll-snap-align: none; }
/* DRAG 圓：預設隱藏，滑鼠移入列表才由 GSAP 放大出現並跟隨 */
.js-motion .dragCursor { opacity: 0; visibility: hidden; transition: none; }
.js-motion .expBox .dataList.is-dragging + .dragCursor { transform: none; }
.js-motion .expBox .imgBox { transform-origin: 50% 50%; }

/* 分層 clip-path 文字 */

.aboutMedia .countBox {
  position: absolute;
  left: 4.8rem;
  bottom: 4.2rem;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: .8rem;
  font-family: var(--ff-en);
  font-weight: 300;
  font-size: max(1.6rem, 12px);
  letter-spacing: .1em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}
.aboutMedia .countBox .cur { display: block; height: 1.2em; overflow: hidden; font-size: max(4rem, 26px); line-height: 1.2; }
.aboutMedia .countBox .cur b { display: block; font-weight: 300; }
.aboutMedia .countBox i { font-style: normal; padding-bottom: .2em; }

.aboutArea .progressBox {
  position: absolute;
  left: 50%;
  bottom: 4.4rem;
  width: 16rem;
  height: 1px;
  margin-left: -8rem;
  background: rgba(101, 135, 161, .2);
}
.aboutArea .progressBox i { position: absolute; inset: 0; background: var(--c-blue); transform: scaleX(0); transform-origin: 0 50%; }

/* 桌機：一屏高度，右欄內容垂直置中，可在各種螢幕高度下 pin 住 */
@media (min-width: 1024px) {
  .aboutArea { height: 100vh; min-height: 640px; }
  .aboutArea > .imgBox { height: 100%; }
  .aboutArea > .wrap { display: flex; flex-direction: column; justify-content: center; padding: 6rem 0 8rem; }
  .aboutArea .dataBox { margin-top: min(6.6rem, 4vh); }
  .aboutArea .dataList { grid-template-columns: 1fr min(36.5rem, 31vh) 1fr; }
  .aboutArea .dataItem--img .imgBox { height: min(43.6rem, 37vh); }
  .aboutArea .titleBox--bottom { margin-top: min(5.4rem, 3.6vh); }
}
@media (max-width: 1023px) {
  .aboutArea .progressBox { display: none; }
  .aboutMedia .countBox { left: 2rem; bottom: 2rem; }
  .heroUi { left: 2rem; right: 2rem; bottom: 3rem; }
}

/* ---------- 圖片 reveal / parallax ---------- */
.js-motion [data-img] { clip-path: inset(100% 0 0 0); }

/* ---------- 磁吸按鈕 ---------- */

/* ---------- marquee 由 GSAP 接手時關閉 CSS 動畫 ---------- */
.gsap-marquee .track { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .soundBtn .bars b, .scrollHint i::after { animation: none; }
}

/* =========================================================
   resortArea 時間區塊 — 百葉窗圖片 / 數字滾輪 / 標籤底線
   ========================================================= */
#dayImgBox { overflow: hidden; }
#dayImgBox .daySlide { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 50%; }
#dayImgBox .daySlide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#dayImgBox .dayShade { position: absolute; inset: 0; background: #0d1c27; opacity: 0; pointer-events: none; }

.digitRoll { display: flex; align-items: flex-start; margin: 0; line-height: 1.1; }
.digitRoll .dCol,
.digitRoll .dSep { display: block; height: 1.1em; }
.digitRoll .dCol { overflow: hidden; }
.digitRoll .dTrack { display: flex; flex-direction: column; }
.digitRoll .dTrack b { display: block; height: 1.1em; font-weight: inherit; }

.dayBox .paren { transform-origin: 50% 50%; }

