:root {
  --ink-night: #0b1420;
  --ink: #16293d;
  --ivory: #f3ead8;
  --paper: #f3efe6;
  --gold: #f0c95a;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink-night);
  color: var(--ivory);
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
}
a { color: inherit; text-decoration: none; }
section { scroll-margin-top: 64px; }

/* ── 導覽列 ───────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 30px;
  opacity: 0;
  animation: appear 1.8s ease-out 3.6s forwards;
  transition: background .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 20, 32, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 30px;
  border-bottom-color: rgba(243, 234, 216, .07);
}
.nav-logo img { height: 38px; width: auto; display: block; }
.nav.instant { animation: none; opacity: 1; }

.menu-btn {
  display: block;
  background: none;
  border: none;
  padding: 10px 4px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 26px; height: 1px;
  background: var(--ivory);
  margin: 7px 0;
  transition: transform .3s ease, opacity .3s ease;
}
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(9, 16, 26, .97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 42px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }
.menu-overlay a {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 300;
  letter-spacing: .42em;
  margin-right: -.42em;
  color: rgba(243, 234, 216, .8);
  transition: color .3s ease;
}
.menu-overlay a:hover { color: var(--ivory); }
.menu-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: rgba(243, 234, 216, .6);
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  padding: 8px;
  font-family: "Noto Sans TC", sans-serif;
}

/* ── 第一幕：Hero ───────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(16, 30, 46, .55) 0%, rgba(11, 20, 32, 0) 55%),
    var(--ink-night);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 110% at 50% 45%, transparent 55%, rgba(4, 8, 14, .75) 100%);
  pointer-events: none;
}
.source {
  position: absolute;
  top: 6vh; left: 50%;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px 3px rgba(240, 201, 90, .55);
  opacity: 0;
  animation: appear 1.6s ease-out .3s forwards;
}
.beam {
  position: absolute;
  top: 6vh; left: 50%;
  width: min(58vw, 560px);
  height: 52vh;
  transform: translateX(-50%);
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
  background: linear-gradient(to bottom,
    rgba(240, 205, 100, .20),
    rgba(240, 205, 100, .07) 62%,
    rgba(240, 205, 100, 0));
  filter: blur(14px);
  opacity: 0;
  animation: appear 2.8s ease-out .6s forwards;
}
.pool {
  position: absolute;
  top: 44vh; left: 50%;
  width: min(86vw, 900px);
  height: 30vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(240, 205, 100, .11), transparent 68%);
  opacity: 0;
  animation: appear 2.8s ease-out 1s forwards;
}
.slogan {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 0 16px;
  text-align: center;
  font-weight: 300;
  font-size: clamp(26px, 4.4vw, 46px);
  letter-spacing: .32em;
  margin-right: -.32em;
  line-height: 2;
  white-space: nowrap;
  opacity: 0;
  animation: rise 1.6s cubic-bezier(.2, .6, .2, 1) 2.2s forwards;
}
.m { display: none; }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: appear 1.8s ease-out 3.8s forwards;
}
.scroll-cue span {
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(243, 234, 216, .7);
  border-bottom: 1px solid rgba(243, 234, 216, .7);
  transform: rotate(45deg);
  animation: cue-step 2.2s ease-in-out infinite;
}
.scroll-cue span + span {
  margin-top: -8px;
  animation-delay: .25s;
}
@keyframes cue-step {
  0%, 100% { opacity: .15; transform: rotate(45deg) translate(0, 0); }
  50%      { opacity: .85; transform: rotate(45deg) translate(3px, 3px); }
}

/* 看更多 */
.more {
  display: inline-block;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: .5em;
  text-indent: .5em;
  color: rgba(243, 234, 216, .5);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(243, 234, 216, .2);
  transition: color .35s ease, border-color .35s ease;
}
.more:hover { color: var(--ivory); border-bottom-color: var(--gold); }
.more.dark {
  color: rgba(22, 41, 61, .55);
  border-bottom-color: rgba(22, 41, 61, .22);
}
.more.dark:hover { color: var(--ink); border-bottom-color: var(--gold); }

@keyframes appear { to { opacity: 1; } }
@keyframes rise {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* ── 共用：進場顯示 ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.in { opacity: 1; transform: none; }

.label {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: .5em;
  opacity: .5;
}

/* ── 第二幕：品牌故事（光圈開啟） ───────────────────────── */
.story {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 52px;
  text-align: center;
  padding: 20vh 24px;
}
.aperture {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 48px 12px;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}
.story .line1 {
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: .3em;
  margin-right: -.3em;
  color: rgba(243, 234, 216, .78);
}
.story .line2 {
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: .4em;
  margin-right: -.4em;
}

/* ── 第三幕：服務 ───────────────────────── */
.services {
  background: var(--paper);
  color: var(--ink);
  padding: 18vh 8vw;
  text-align: center;
}
.services .label { color: var(--ink); }
.service-grid {
  margin-top: 9vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.4vw;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.card {
  display: block;
  background: #fcfaf4;
  border: 1px solid rgba(22, 41, 61, .08);
  padding-bottom: 38px;
  transition: transform .45s ease, box-shadow .45s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(22, 41, 61, .12);
}
.card-img {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(80% 90% at 65% 20%, rgba(32, 54, 80, .75), transparent 60%),
    linear-gradient(150deg, #15263a, #0b1420);
  background-size: cover;
  background-position: center;
}
.card h3 {
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: .26em;
  margin-right: -.26em;
  margin: 32px 16px 18px;
}
.card p {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 300;
  font-size: 13.5px;
  line-height: 2;
  letter-spacing: .08em;
  color: rgba(22, 41, 61, .68);
  margin: 0 20px;
}

/* ── 第四幕：案例（左圖右文） ───────────────────────── */
.works {
  background: var(--ink-night);
  padding: 18vh 8vw;
}
.works-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 5vw;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
.works-img {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(90% 70% at 70% 20%, rgba(32, 54, 80, .7), transparent 60%),
    radial-gradient(70% 60% at 25% 80%, rgba(20, 36, 56, .85), transparent 65%),
    #0e1a2a;
  background-size: cover;
  background-position: center;
}
.works-info .label { margin-bottom: 36px; }
.works-info h3 {
  font-weight: 300;
  font-size: clamp(21px, 2.4vw, 28px);
  letter-spacing: .22em;
  line-height: 1.8;
}
.works-info p {
  margin: 26px 0 40px;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 2.2;
  letter-spacing: .06em;
  color: rgba(243, 234, 216, .62);
}

/* ── 內頁（占位） ───────────────────────── */
.subpage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  text-align: center;
  padding: 20vh 24px;
}
.subpage h1 {
  font-weight: 300;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: .5em;
  margin-right: -.5em;
}
.subpage .note {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: .3em;
  color: rgba(243, 234, 216, .45);
}

/* ── 第五幕：聯繫 ───────────────────────── */
.contact {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 52px;
  text-align: center;
  padding: 16vh 24px;
}
.contact h2 {
  font-weight: 300;
  font-size: clamp(24px, 3.4vw, 40px);
  letter-spacing: .34em;
  margin-right: -.34em;
}
.btn-line {
  display: inline-block;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: .4em;
  text-indent: .4em;
  color: var(--gold);
  border: 1px solid rgba(240, 201, 90, .65);
  padding: 16px 44px;
  transition: background .35s ease, color .35s ease;
}
.btn-line:hover { background: var(--gold); color: var(--ink-night); }
.contact .phone {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: .3em;
  color: rgba(243, 234, 216, .45);
}

/* ── 頁尾 ───────────────────────── */
footer {
  padding: 60px 24px 48px;
  text-align: center;
  border-top: 1px solid rgba(243, 234, 216, .06);
}
footer img { height: 24px; opacity: .45; }
footer .copy {
  margin-top: 18px;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: .24em;
  color: rgba(243, 234, 216, .35);
}

/* ── 響應式 ───────────────────────── */
@media (max-width: 760px) {
  .nav { padding: 14px 16px; }
  .nav.scrolled { padding: 10px 16px; }
  .nav-logo img { height: 32px; }
  .slogan { white-space: normal; line-height: 2.1; }
  .m { display: block; }
  .beam { width: 86vw; }
  .service-grid { grid-template-columns: 1fr; gap: 36px; max-width: 420px; }
  .services { padding: 14vh 24px; }
  .works { padding: 14vh 24px; }
  .works-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav, .source, .beam, .pool, .slogan, .scroll-cue { animation: none; opacity: 1; }
  .scroll-cue span { animation: none; opacity: .5; }
  .slogan { transform: translate(-50%, -50%); }
  .reveal { opacity: 1; transform: none; transition: none; }
  .aperture { clip-path: none !important; }
}
