@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Noto+Sans+TC:wght@300;400;500;600&display=swap");
:root {
  --ink: #171715;
  --brown: #211b17;
  --coffee: #30261f;
  --gold: #bd965e;
  --ivory: #eee9df;
  --line: rgba(189, 150, 94, 0.35);
  --header-h: 96px;
  --serif: "Cormorant Garamond", serif;
  --sans: "Noto Sans TC", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.8;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 3.4vw;
  border-bottom: 1px solid #ffffff20;
  transition:
    background 0.45s ease,
    box-shadow 0.45s ease,
    height 0.3s ease;
}
.site-header:before {
  content: "";
  position: absolute;
  left: 12.7vw;
  top: 0;
  width: 1px;
  height: 100vh;
  background: #ffffff26;
  pointer-events: none;
}
.site-header.scrolled {
  background: rgba(24, 20, 17, 0.92);
  box-shadow: 0 8px 35px #0004;
  backdrop-filter: blur(12px);
}
.logo {
  width: 255px;
  position: relative;
  z-index: 2;
}
.logo img {
  width: 100%;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.55vw;
  margin-left: auto;
  font-size: 14px;
  font-weight: 400;
}
.main-nav > a,
.nav-product > a {
  display: block;
  padding: 34px 0;
  position: relative;
}
.main-nav > a:after,
.nav-product > a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 24px;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s;
}
.main-nav > a:hover:after,
.nav-product > a:hover:after {
  right: 0;
}
.header-contact {
  margin-left: 1.6vw;
  border: 1px solid #ffffff52;
  padding: 8px 12px 8px 16px;
  font-size: 13px;
}
.header-contact span {
  margin-left: 22px;
  color: var(--gold);
}
.nav-product {
  position: relative;
}
@media (min-width: 901px) {
  .nav-product:hover .mega-menu,
  .nav-product:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
  }
}
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 285px;
  max-height: calc(100vh - var(--header-h));
  padding: 10px 0;
  overflow-y: auto;
  background: rgba(27, 23, 20, 0.97);
  border-top: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: 0.3s;
  box-shadow: 0 25px 60px #0005;
}
.mega-menu a {
  display: block;
  padding: 7px 24px;
  color: #fff;
  border-bottom: 1px solid #ffffff0f;
  font-size: 14px;
  transition:
    color 0.25s ease,
    background 0.25s ease;
}
.mega-menu a:last-child {
  border-bottom: 0;
}
.mega-menu a:hover {
  color: var(--gold);
  background: #ffffff08;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 27px;
  height: 1px;
  background: #fff;
  margin: 6px;
}
.screen-section {
  min-height: calc(100svh - var(--header-h));
  scroll-margin-top: var(--header-h);
  position: relative;
  overflow: hidden;
}
.section-tag {
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 500;
  margin: 0 0 14px;
}
.section-tag.dark {
  color: #50463e;
}
.section-index {
  position: absolute;
  right: 3vw;
  top: 48%;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 11px var(--serif);
  writing-mode: vertical-rl;
}
.section-index i {
  width: 1px;
  height: 44px;
  background: var(--gold);
}
.section-index span {
  opacity: 0.45;
}
.section-index.light {
  color: #fff;
}
.line-link {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 500;
}
.line-link span {
  color: var(--gold);
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s ease,
    transform 0.85s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.site-footer {
  background: #151412;
  padding: 55px 13vw 24px;
  color: #aaa;
  font-size: 13px;
}
.footer-top {
  display: flex;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid #ffffff18;
}
.footer-top img {
  width: 250px;
}
.footer-top nav {
  margin-left: auto;
  display: flex;
  gap: 2vw;
  color: #fff;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 50px;
  padding: 34px 0;
}
.footer-main p {
  color: #fff;
  font-size: 15px;
  margin: 0;
}
.footer-main dl {
  display: grid;
  grid-template-columns: 55px 1fr;
  margin: 0;
}
.footer-main dt {
  color: #fff;
}
.footer-main dd {
  margin: 0;
}
.footer-bottom {
  border-top: 1px solid #ffffff18;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
}
@media (max-width: 1200px) {
  .main-nav {
    gap: 1vw;
    font-size: 12px;
  }
  .logo {
    width: 175px;
  }
  .header-contact {
    display: none;
  }
}
@media (max-width: 900px) {
  :root {
    --header-h: 66px;
  }
  .site-header {
    padding: 0 20px;
    background: rgba(24, 20, 17, 0.9);
  }
  .site-header:before {
    display: none;
  }
  .logo {
    width: 200px;
  }
  .menu-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #1b1714;
    padding: 20px 28px;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    font-size: 15px;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav > a,
  .nav-product > a {
    padding: 9px 0;
  }
  .mega-menu {
    position: static;
    display: none;
    width: auto;
    max-height: none;
    padding: 8px 0;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 8px;
  }
  .nav-product.open .mega-menu {
    display: block;
  }
  .screen-section {
    min-height: auto;
  }
  .site-footer {
    padding: 48px 24px 24px;
  }
  .footer-top,
  .footer-main {
    display: block;
  }
  .footer-top nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 28px;
  }
  .footer-main dl {
    margin-top: 25px;
  }
  .footer-bottom {
    gap: 20px;
  }
  .footer-top img {
    width: 220px;
  }
}

/* Navigation and footer typography calibrated for 1920px desktop screens. */
@media (min-width: 1200px) {
  .main-nav {
    font-size: 16px;
    gap: 1.35vw;
  }
  .header-contact {
    font-size: 15px;
  }
  .mega-menu a {
    font-size: 15px;
    line-height: 1.85;
  }
  .site-footer {
    font-size: 14px;
  }
  .footer-main p {
    font-size: 18px;
  }
  .footer-top nav {
    font-size: 15px;
  }
  .footer-main dl {
    font-size: 14px;
    line-height: 2;
  }
}

/* Keep decorative layout lines out of the logo and the sticky header. */
.site-header:before {
  display: none;
}
.site-header.scrolled {
  background: #181411;
  box-shadow: 0 8px 35px #0005;
  backdrop-filter: none;
}
.nav-arrow {
  display: none;
  width: 20px;
  height: 20px;
  color: var(--gold);
  transition: transform 0.3s ease;
}
@media (max-width: 900px) {
  .nav-product > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .nav-arrow {
    display: block;
    flex: 0 0 20px;
  }
  .nav-product.open .nav-arrow {
    transform: rotate(180deg);
  }
  .main-nav > a:after,
  .nav-product > a:after {
    display: none;
  }
  .mega-menu {
    border-top: 0;
    box-shadow: none;
  }
}

/* Shared inner-page framework */
.inner-page {
  background: #eee8de;
  color: #29231e;
}
.inner-page .site-header {
  background: #181411;
  color: #fff;
}
.inner-page .site-header a {
  color: inherit;
}
.inner-page .site-header .nav-arrow,
.inner-page .site-header .header-contact span {
  color: var(--gold);
}
.inner-page .site-header .mega-menu a {
  color: #fff;
}
.inner-page .site-header .mega-menu a:hover {
  color: var(--gold);
}
.inner-hero {
  height: 380px;
  padding: var(--header-h) 13.5vw 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, #161310e8, #16131075),
    url("../images/home-hero.jpg") center 48% / cover;
  color: #fff;
}
.inner-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 12.7vw,
      #ffffff24 12.7vw,
      #ffffff24 calc(12.7vw + 1px),
      transparent calc(12.7vw + 1px)
    ),
    linear-gradient(
      180deg,
      transparent 72%,
      #ffffff20 72%,
      #ffffff20 calc(72% + 1px),
      transparent calc(72% + 1px)
    );
}
.inner-title {
  position: relative;
  z-index: 2;
}
.inner-title > p {
  margin: 0;
  color: #d0a968;
  font-size: 14px;
  letter-spacing: 0.18em;
}
.inner-title h1 {
  font: 600 clamp(32px, 2.4vw, 44px) / 1.1 var(--serif);
  margin: 8px 0 12px;
}
.inner-title span {
  font-size: 16px;
  color: #d2cec8;
}
.inner-page .site-footer {
  color: #aaa;
}
.lightbox {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #0d0b0aef;
}
.lightbox.open {
  display: flex;
  animation: lbIn 0.25s ease;
}
.lightbox > img {
  max-width: 84vw;
  max-height: 86vh;
  object-fit: contain;
  transition: opacity 0.18s ease;
}
.lightbox > img.fade {
  opacity: 0;
}
.lightbox button {
  position: absolute;
  width: 52px;
  height: 52px;
  border: 1px solid #ffffff50;
  border-radius: 50%;
  background: #171310a8;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.lightbox .close {
  right: 25px;
  top: 25px;
  font-size: 27px;
}
.lightbox .prev {
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox .next {
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox .prev,
.lightbox .next {
  font-size: 0;
}
.lightbox .prev::before,
.lightbox .next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(75% 0, 90% 15%, 40% 50%, 90% 85%, 75% 100%, 10% 50%);
  transform-origin: center;
}
.lightbox .prev::before {
  transform: translate(-50%, -50%);
}
.lightbox .next::before {
  transform: translate(-50%, -50%) scaleX(-1);
}
@keyframes lbIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 900px) {
  .inner-hero {
    height: 290px;
    padding: var(--header-h) 24px 0;
  }
  .inner-title > p {
    font-size: 13px;
  }
  .inner-title h1 {
    font-size: 27px;
    margin-bottom: 5px;
  }
  .inner-title span {
    font-size: 15px;
  }
  .lightbox button {
    width: 44px;
    height: 44px;
  }
  .lightbox .prev {
    left: 7px;
  }
  .lightbox .next {
    right: 7px;
  }
  .lightbox .close {
    right: 12px;
    top: 12px;
  }
}
