:root {
  --clay: #a0693e;
  --clay-dark: #7d4f2c;
  --sun: #d97b2f;
  --sea: #3e6b7a;
  --moss: #6b7a55;
  --ink: #2b231d;
  --ink-soft: #4d4238;
  --paper: #f7f1e7;
  --paper-deep: #efe4d2;
  --white: #fffdf9;
  --line: rgba(43, 35, 29, 0.14);
  --shadow: 0 10px 30px rgba(43, 35, 29, 0.12);
  --radius: 14px;
  --font-h: "Noto Serif TC", "Noto Sans TC", "Microsoft JhengHei", serif;
  --font-b: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .serif { font-family: var(--font-h); font-weight: 700; }

.section { padding: 88px 0; }
.section--tint { background: var(--paper-deep); }
.section--dark { background: var(--ink); color: var(--paper); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .kicker {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.35em;
  color: var(--sun);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: 0.06em; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.02rem; }
.section--dark .section-head p { color: rgba(247, 241, 231, 0.75); }

/* ---------- 織紋帶（阿美族幾何意象） ---------- */
.tribal-band {
  height: 10px;
  background:
    repeating-linear-gradient(90deg,
      var(--sun) 0 14px, var(--paper) 14px 18px,
      var(--sea) 18px 32px, var(--paper) 32px 36px,
      var(--clay) 36px 50px, var(--paper) 50px 54px);
  opacity: 0.9;
}
.tribal-band--dark {
  background:
    repeating-linear-gradient(90deg,
      var(--sun) 0 14px, var(--ink) 14px 18px,
      var(--sea) 18px 32px, var(--ink) 32px 36px,
      var(--clay) 36px 50px, var(--ink) 50px 54px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.brand-name { font-family: var(--font-h); font-size: 1.25rem; letter-spacing: 0.18em; }
.brand-sub { font-size: 0.7rem; letter-spacing: 0.3em; color: var(--sun); font-weight: 600; }

.main-nav ul { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: var(--paper-deep); color: var(--clay-dark); }
.main-nav a.active { background: var(--clay); color: var(--white); }

.nav-cta {
  background: var(--clay);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--clay-dark); color: var(--white); }
.main-nav a.nav-cta:hover { background: var(--clay-dark); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  padding: 120px 24px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: brightness(0.55) saturate(1.05);
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero .kicker {
  font-size: 0.85rem;
  letter-spacing: 0.45em;
  color: #ffcf9e;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}
.hero .slogan {
  margin: 26px auto 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255, 253, 249, 0.92);
  max-width: 620px;
  line-height: 2;
}
.hero .slogan em { font-style: normal; color: #ffcf9e; }
.hero-actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--sun); color: var(--white); }
.btn--primary:hover { background: #c66a22; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.75); color: var(--white); background: rgba(0, 0, 0, 0.18); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #3a2f26; }

/* ---------- 四元素 ---------- */
.elements-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.element {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 22px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.element:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.element .glyph {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.element .glyph svg { width: 32px; height: 32px; display: block; }
.glyph--sun { background: var(--sun); }
.glyph--mountain { background: var(--moss); }
.glyph--sea { background: var(--sea); }
.glyph--eye { background: var(--clay); }
.element h3 { font-size: 1.15rem; margin-bottom: 4px; }
.element .roman { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 10px; display: block; }
.element p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- 核心價值 ---------- */
.creed { text-align: center; max-width: 780px; margin: 0 auto; }
.creed blockquote {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--white);
}
.creed .origin {
  margin-top: 20px;
  color: var(--sun);
  font-size: 1rem;
  letter-spacing: 0.2em;
}
.creed .note {
  margin-top: 26px;
  color: rgba(247, 241, 231, 0.75);
  font-size: 0.98rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 服務 ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--clay);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service:nth-child(2) { border-top-color: var(--sun); }
.service:nth-child(3) { border-top-color: var(--sea); }
.service:nth-child(4) { border-top-color: var(--moss); }
.service:nth-child(5) { border-top-color: var(--clay-dark); }
.service .no {
  font-family: var(--font-h);
  font-size: 0.85rem;
  color: var(--sun);
  letter-spacing: 0.3em;
  margin-bottom: 12px;
}
.service h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.service .tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.service .tags span {
  font-size: 0.78rem;
  background: var(--paper-deep);
  color: var(--ink-soft);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- 作品 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-card .thumb { aspect-ratio: 1 / 1; overflow: hidden; }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.work-card:hover .thumb img { transform: scale(1.06); }
.work-card .info { padding: 20px 22px 24px; }
.work-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.work-card p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- 大圖特色區（作品） ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 32px;
}
.feature:last-child { margin-bottom: 0; }
.feature .photo { min-height: 320px; }
.feature .photo img { width: 100%; height: 100%; object-fit: cover; }
.feature .body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.feature .tag {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--sun);
  font-weight: 600;
  margin-bottom: 10px;
}
.feature h3 { font-size: 1.5rem; margin-bottom: 12px; }
.feature p { color: var(--ink-soft); font-size: 0.98rem; }
.feature .meta { margin-top: 18px; font-size: 0.85rem; color: var(--sea); font-weight: 600; }

/* ---------- 頁面 hero（子頁） ---------- */
.page-hero {
  position: relative;
  padding: 110px 24px 90px;
  text-align: center;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.page-hero .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  transform: scale(1.05);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .kicker { letter-spacing: 0.4em; color: #ffcf9e; font-size: 0.82rem; font-weight: 600; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 14px; letter-spacing: 0.12em; }
.page-hero p { margin-top: 16px; color: rgba(247, 241, 231, 0.82); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- 品牌故事 ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story-grid .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.story-grid h2 { font-size: 1.7rem; margin-bottom: 18px; }
.story-grid p { color: var(--ink-soft); margin-bottom: 14px; }
.story-grid p strong { color: var(--clay-dark); }

.values-list { margin-top: 26px; display: grid; gap: 14px; }
.values-wrap { max-width: 820px; margin: 0 auto; }
.values-list li {
  display: flex;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  align-items: flex-start;
}
.values-list .mark {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-size: 1.15rem;
}
.values-list b { display: block; font-family: var(--font-h); font-size: 1.05rem; }
.values-list span { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- 流程 ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px 28px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-h);
  font-size: 2.4rem;
  color: var(--paper-deep);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- 聯絡 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.contact-card {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card .ico {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  font-family: var(--font-h);
  font-weight: 700;
}
.ico--line { background: #06c755; }
.ico--ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.ico--fb { background: #1877f2; }
.ico--pinkoi { background: #e8563f; }
.ico--place { background: var(--clay); }
.contact-card h3 { font-size: 1.1rem; }
.contact-card .handle { font-size: 1.02rem; color: var(--ink-soft); margin-top: 2px; }
.contact-card .handle b { color: var(--clay-dark); }

.contact-panel {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.contact-panel h3 { font-size: 1.5rem; margin-bottom: 16px; }
.contact-panel p { color: rgba(247, 241, 231, 0.78); font-size: 0.96rem; margin-bottom: 26px; }
.contact-panel .btn { width: 100%; text-align: center; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--clay) 0%, var(--sun) 100%);
  padding: 72px 24px;
  text-align: center;
  color: var(--white);
}
.cta-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: 0.08em; }
.cta-band p { margin: 14px auto 30px; max-width: 520px; color: rgba(255, 253, 249, 0.9); }
.cta-band .btn--ghost { border-color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247, 241, 231, 0.72); padding: 64px 24px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: 1120px; margin: 0 auto; }
.footer-brand .brand-name { color: var(--paper); font-size: 1.4rem; letter-spacing: 0.18em; }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; max-width: 340px; }
.footer-col h4 {
  color: var(--paper);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  margin-bottom: 16px;
  font-family: var(--font-b);
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: #ffcf9e; }
.footer-bottom {
  max-width: 1120px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 241, 231, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

/* ---------- Reveal 動畫 ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (hover: none) {
  .element:hover, .service:hover, .work-card:hover, .contact-card:hover, .btn:hover {
    transform: none;
    box-shadow: none;
  }
  .work-card:hover .thumb img { transform: none; }
  .element:active, .service:active, .work-card:active, .contact-card:active {
    transform: scale(0.98);
  }
  .btn:active { transform: scale(0.97); }
}

/* ---------- RWD ---------- */
@media (max-width: 980px) {
  .elements-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature .photo { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .site-header { padding-top: env(safe-area-inset-top); }
  .header-inner { height: 60px; }
  .brand img { width: 40px; height: 40px; }
  .nav-toggle {
    display: flex;
    width: 48px;
    height: 48px;
    margin-left: auto;
  }
  .main-nav {
    position: fixed;
    inset: calc(60px + env(safe-area-inset-top)) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 24px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { text-align: center; padding: 16px; border-radius: 12px; font-size: 1.02rem; }
  .main-nav li + li { border-top: 1px solid var(--line); }
  .main-nav .nav-cta { margin-top: 12px; }
  .elements-grid, .services-grid, .works-grid, .process-grid { grid-template-columns: 1fr; }
  .contact-panel { padding: 28px 22px; }
  .hero { min-height: 80vh; padding: 84px 20px; }
  .hero .slogan { line-height: 1.8; }
  .hero-actions { flex-direction: column; align-items: stretch; padding: 0 8px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .feature .body { padding: 26px 24px 30px; }
  .feature h3 { font-size: 1.28rem; }
  .work-card .info { padding: 16px 18px 20px; }
  .contact-card { padding: 18px 18px; gap: 14px; }
  .contact-card .ico { width: 46px; height: 46px; font-size: 1.15rem; }
  .story-grid { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .brand-sub { display: none; }
}

body.no-scroll { overflow: hidden; }
