/* ── Reset ───────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Noto+Serif+TC:wght@500&display=swap');
@import url("https://use.typekit.net/jxw6vmr.css");
@import url('https://fonts.googleapis.com/css2?family=Jura:wght@300..700&display=swap');

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

::selection {
  background: var(--Main);
  color: var(--Gray);
}

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

html.lenis {
  height: auto;
}

html.is-menu-open,
html.is-menu-open body {
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.is-menu-open::-webkit-scrollbar,
html.is-menu-open body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

a,
a:hover,
a:active {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}


body {
  width: 100vw;
  height: 100vh;
  margin: 0;

  --Bg: #000;
  --Text: #fff;
  --Main: #FF4F00;
  --White: #fff;
  --Black: #000;
  --Gray: #848484;
  --Glass: rgba(255, 255, 255, .2);
  --Border: rgba(255, 255, 255, .5);

  --interlude-color: var(--Black);
  /* columns 條柱顏色 */

  --Sans: 'itc-avant-garde-gothic-pro', 'Noto Sans TC', sans-serif;
  --Serif: 'linotype-didot', 'Noto Serif TC', serif;
  --Jura: 'Jura', sans-serif;

  color: var(--Text);
  background: var(--Main);

  font-family: var(--Sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1em;
  position: relative;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar {
  width: 7px;
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 7px;
  background-color: var(--White);
}


ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--Jura);
  font-weight: 400;
  letter-spacing: -2px;
  margin: 0;
  padding: 0;
  line-height: 1em;
}

/* ── Page transitions (Interlude) ───────────────────────────── */
.interlude {
  position: fixed;
  inset: 0;
  z-index: 8000;
  visibility: hidden;
  pointer-events: none;
}

.interlude:is([data-state='leaving'], [data-state='entering'], [data-state='covered']),
.is-transitioning .interlude {
  visibility: visible;
  pointer-events: auto;
}

.interlude:where([data-state='covered'][data-cover='solid']),
.is-transitioning .interlude:where(:not([data-state])) {
  background: var(--interlude-color);
}

/* Fail-safe: uncover if the engine never starts */
.is-transitioning .interlude:not([data-ready]) {
  animation: interlude-failsafe 0s 4s forwards;
}

@keyframes interlude-failsafe {
  to {
    visibility: hidden;
    pointer-events: none;
  }
}

.interlude__panel {
  position: absolute;
  inset: 0;
  background: var(--interlude-color);
  will-change: transform;
}

/* Preloader is hidden when arriving through a transition */
.is-transitioning #preloader {
  display: none;
}

/* ── Preloader ───────────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--Black);
  display: flex;
  justify-content: center;
  align-items: center;
}

.pl-logo {
  width: clamp(200px, 38vw, 440px);
}

.pl-logo svg {
  width: 100%;
  height: auto;
  display: block;
}

#pl-fill {
  fill: var(--Main);
}

header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 30px 30px 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  width: 100px;
  height: auto;
  display: block;
  fill: var(--Text);
}

.hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--Text);
  border: 1px solid var(--Border);
  border-radius: 0;
  backdrop-filter: blur(10px);
  position: relative;
}

/* Icon: transitions to accent colour after border finishes drawing (4×0.18s) */
.hamburger i {
  transition: color 0.18s ease;
  transition-delay: 0s;
}

.hamburger:hover i {
  color: var(--Main);
  transition-delay: 0.72s;
}

/* ── Border-draw lines ───────────────────────────────────────── */
/* Four 1 px spans sit exactly over the four border edges.
   Non-hover delays run in reverse order so the revert unwinds
   the same path it drew (left→bottom→right→top). */
.hb-line {
  position: absolute;
  background: var(--Main);
  pointer-events: none;
  transition: transform 0.18s linear;
}

/* top: grows left → right */
.hb-line--t {
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  transition-delay: 0.54s;
  /* revert last */
}

/* right: grows top → bottom */
.hb-line--r {
  top: -1px;
  right: -1px;
  width: 1px;
  height: calc(100% + 2px);
  transform: scaleY(0);
  transform-origin: center top;
  transition-delay: 0.36s;
}

/* bottom: grows right → left */
.hb-line--b {
  bottom: -1px;
  right: -1px;
  width: calc(100% + 2px);
  height: 1px;
  transform: scaleX(0);
  transform-origin: right center;
  transition-delay: 0.18s;
}

/* left: grows bottom → top */
.hb-line--l {
  bottom: -1px;
  left: -1px;
  width: 1px;
  height: calc(100% + 2px);
  transform: scaleY(0);
  transform-origin: center bottom;
  transition-delay: 0s;
  /* revert first */
}

/* Hover: draw in order top→right→bottom→left */
.hamburger:hover .hb-line--t {
  transform: scaleX(1);
  transition-delay: 0s;
}

.hamburger:hover .hb-line--r {
  transform: scaleY(1);
  transition-delay: 0.18s;
}

.hamburger:hover .hb-line--b {
  transform: scaleX(1);
  transition-delay: 0.36s;
}

.hamburger:hover .hb-line--l {
  transform: scaleY(1);
  transition-delay: 0.54s;
}


/* ── Menu page ───────────────────────────────────────────────── */
.menu-main {
  width: 100%;
  min-height: 100vh;
  background: var(--Bg);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--Main);
  padding: 50px 50px;
}

body.menu-page {
  background: var(--White);
  color: var(--Black);
}

body.menu-page .hamburger {
  color: var(--Black);
  border-color: rgba(0, 0, 0, 0.2);
}

body.menu-page .hb-line {
  background: var(--Main);
}

body.menu-page .menu-main {
  background: var(--White);
}

nav {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

nav .navOption {
  width: 100%;
  font-family: var(--Jura);
  color: var(--Main);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 2rem;
  line-height: 1em;
  font-weight: 300;
  transition: color 0.3s ease;
}

nav .navOption:hover {
  color: var(--Gray);
  transition: color 0.3s ease;
}

nav .navGroup {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.subOption {
  color: var(--Gray);
  font-family: var(--Jura);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.2rem;
  line-height: 1.2em;
  font-weight: 300;
  transition: color 0.3s ease;
}

.subOption:hover {
  color: var(--Main);
  transition: color 0.3s ease;
}

nav img {
  width: 100px;
  height: auto;
  margin: 0 auto;
}

.socialMedia {
  display: inline-block;
  color: var(--Main);
  width: 40px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid var(--Main);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.socialMedia:hover {
  background: var(--Main);
  color: var(--White);
  transition: all 0.3s ease;
}

/* ── Scroll indicator ────────────────────────────────────────── */
.scroll {
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
  color: var(--White);
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 10;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}

.scroll svg {
  fill: var(--White);
}

.scroll.is-inview,
body.is-menu-open .scroll,
body.cs-view-content .scroll {
  opacity: 0;
  visibility: hidden;
}

#scroll {
  width: 20px;
  height: auto;
  fill: var(--White);
}

svg .dot {
  animation: scroll ease 1.5s infinite;
}

@keyframes scroll {
  0% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(100px);
  }
}

.scrollText {
  writing-mode: vertical-lr;
  margin-top: 10px;
  font-family: var(--Jura);
  font-size: 12px;
  font-weight: 300;
  line-height: 1;
}

main {
  position: relative;
}

section {
  position: relative;
  width: 100dvw;
  height: 100dvh;
  overflow: hidden;
}


/* ////RWD//// */
@media screen and (max-width:1660px) {}

@media screen and (max-width:1440px) {}

@media screen and (max-width:1366px) {}

@media screen and (max-width:1280px) {}

@media screen and (max-width:1024px) {}

@media (orientation:landscape) and (max-height:767px) {
  nav {
    gap: 30px;
  }
}

@media (orientation:portrait) and (max-height:1180px) {}

@media (orientation:portrait) and (max-height:1024px) {}

@media screen and (max-width:480px) {
  nav {
    gap: 20px;
  }

  nav .navOption {
    font-size: 1.6rem;
  }

  .subOption {
    font-size: 1rem;
  }

  nav img {
    width: 80px;
  }
}

/*Iphone XR 414*896 */
@media (orientation: portrait) and (max-height:896px) {}

/*Iphone 12Pro 390*844 */
@media (orientation: portrait) and (max-height:844px) {}

@media (orientation: portrait) and (max-width:390px) {}

/*Iphone 10 375*812 */
@media (orientation: portrait) and (max-height:812px) {}

@media (orientation: portrait) and (max-width:375px) {}

/*Iphone 8Plus 414*736 */
@media (orientation: portrait) and (max-height:736px) {}

/*Iphone 8 375*667 */
@media (orientation: portrait) and (max-height:667px) {}

@media screen and (max-width:360px) {}

@media screen and (max-width:320px) {}
