:root {
  --pine-950: #0a211c;
  --pine-900: #0e2b25;
  --pine-700: #17483d;
  --pine-500: #2a6b5a;
  --accent: #c8542b;
  --accent-dark: #a8431f;
  --paper: #f6f4ef;
  --tint: #ece9e0;
  --white: #ffffff;
  --ink: #1a1f1d;
  --ink-2: #4c5551;
  --line: #d9d5c9;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --serif: "Noto Serif TC", "PMingLiU", serif;
  --wrap: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--white); padding: 8px 16px; z-index: 100; }
.skip:focus { top: 16px; }

h1, .h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.35; letter-spacing: .02em; text-wrap: balance; }
h1, .h1 { font-size: clamp(34px, 5.2vw, 64px); }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: 22px; font-weight: 700; line-height: 1.5; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500; letter-spacing: .14em;
  color: var(--paper); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.eyebrow--dark { color: var(--pine-700); }

/* 按鈕 */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 28px;
  font-size: 16px; font-weight: 500; text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn::after { content: "→"; transition: transform .2s; }
.btn:hover::after { transform: translateX(4px); }
.btn--light { border-color: var(--paper); color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--pine-900); }
.btn--solid { background: var(--pine-700); color: var(--white); }
.btn--solid:hover { background: var(--pine-900); }
.textlink { font-weight: 500; text-decoration: none; color: var(--pine-700); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.textlink:hover { color: var(--accent-dark); }

/* 頁首 */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.utility { background: var(--pine-900); color: #cfdad5; font-size: 13px; }
.utility__inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.utility a { text-decoration: none; }
.utility a:hover { color: var(--white); text-decoration: underline; }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__zh { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: .08em; }
.brand__en { font-size: 11px; letter-spacing: .26em; color: var(--ink-2); }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a { text-decoration: none; font-size: 16px; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav__links a:hover { border-color: var(--accent); }
.nav__links .nav__cta { background: var(--pine-700); color: var(--white); padding: 10px 22px; border: 0; }
.nav__links .nav__cta:hover { background: var(--pine-900); }
.nav__toggle { display: none; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; padding: 0; }
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after { display: block; width: 24px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .2s; }
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -7px; }
.nav__toggle-bars::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* 主視覺 */
.hero { position: relative; background: var(--pine-900); color: var(--paper); }
.hero__slides { position: relative; height: clamp(520px, 78vh, 720px); }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity .7s ease; }
.slide.is-active { opacity: 1; }
.slide[hidden] { display: flex; visibility: hidden; }
.slide__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide__body { position: relative; padding-bottom: 56px; }
.slide__body h1, .slide__body .h1 { max-width: 15em; }
.slide__lead { max-width: 30em; margin: 24px 0 36px; font-size: clamp(16px, 1.5vw, 19px); color: #dde5e1; }
.hero__controls { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; align-items: center; gap: 16px; }
.hero__arrow { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1.5px solid rgba(246, 244, 239, .5); color: var(--paper); cursor: pointer; transition: background-color .2s, color .2s; }
.hero__arrow:hover { background: var(--paper); color: var(--pine-900); }
.hero__arrow svg { width: 20px; height: 20px; }
.hero__dots { display: flex; gap: 8px; }
.hero__dots button { width: 36px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.hero__dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px; background: rgba(246, 244, 239, .35); transition: background-color .2s; }
.hero__dots button[aria-selected="true"]::before { background: var(--accent); height: 3px; }

/* 區塊 */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--tint { background: var(--tint); }
.section__head { margin-bottom: 56px; }

/* 關於 */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
.about__body p { color: var(--ink-2); }
.about__body p + p { margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 2px solid var(--pine-700); }
.facts > div { padding: 24px 24px 0 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--ink-2); letter-spacing: .08em; }
.facts dd { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 4vw, 52px); line-height: 1.2; color: var(--pine-700); font-variant-numeric: tabular-nums; }
.facts small { display: block; font-family: var(--sans); font-weight: 400; font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* 業務範疇 */
.biz { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.biz__card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.biz__art { width: 100%; aspect-ratio: 600 / 260; }
.biz__body { padding: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.biz__body h3 { font-family: var(--serif); font-size: 28px; }
.biz__body p { color: var(--ink-2); }

/* 產品 */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.product:last-child { padding-bottom: 0; }
.product--flip .product__visual { order: 2; }
.product__no { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--accent); letter-spacing: .1em; margin-bottom: 8px; }
.product__text h3 { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.4; margin-bottom: 16px; }
.product__text h3 span { display: block; font-family: var(--sans); font-size: 18px; font-weight: 500; color: var(--pine-700); }
.product__text > p { color: var(--ink-2); }
.ticks { margin: 28px 0 36px; border-top: 1px solid var(--line); }
.ticks li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.ticks b { display: block; color: var(--ink); font-weight: 700; }

.mock { border: 1px solid var(--line); position: relative; overflow: hidden; }
.mock--dark { background: #14211f; color: var(--paper); border-color: #14211f; }
.mock__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid rgba(246, 244, 239, .14); font-size: 13px; letter-spacing: .06em; color: #b9c6c1; }
.mock__live { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); }
.mock__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.mock__rows { padding: 12px 20px 24px; }
.cap { padding: 16px 0; border-bottom: 1px solid rgba(246, 244, 239, .1); }
.cap:last-child { border-bottom: 0; }
.cap__who { display: inline-block; font-size: 12px; letter-spacing: .08em; padding: 2px 8px; background: var(--pine-500); margin-bottom: 8px; }
.cap__who--b { background: #7a5a2a; }
.cap__src { font-size: 19px; line-height: 1.6; }
.cap__dst { font-size: 15px; line-height: 1.6; color: #a9b8b2; margin-top: 2px; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); margin-left: 3px; vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.mock--map svg { width: 100%; aspect-ratio: 520 / 340; }
.trip { position: absolute; right: 16px; bottom: 16px; background: var(--white); border: 1px solid var(--line); padding: 16px 20px; min-width: 200px; }
.trip__time { font-weight: 700; font-size: 17px; line-height: 1.4; }
.trip__state { font-size: 13px; color: var(--accent-dark); font-weight: 500; margin-bottom: 10px; }
.trip dl { display: flex; gap: 24px; border-top: 1px solid var(--line); padding-top: 10px; }
.trip dt { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.trip dd { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }

/* 社會企業 */
.social { position: relative; color: var(--paper); background: var(--pine-900); padding: clamp(80px, 10vw, 136px) 0; overflow: hidden; }
.social__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.social__body { position: relative; }
.social__body > p:not(.eyebrow) { max-width: 34em; margin-top: 24px; color: #dde5e1; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
.pillars li { border-top: 2px solid var(--accent); padding-top: 20px; }
.pillars h3 { font-size: 20px; margin-bottom: 8px; }
.pillars p { color: #c5d1cc; font-size: 16px; }

/* 聯絡 */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact__card { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--pine-700); padding: 40px; }
.contact__label { font-size: 14px; letter-spacing: .1em; color: var(--ink-2); }
.contact__mail { display: inline-block; font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 3vw, 36px); color: var(--pine-700); text-decoration: none; border-bottom: 2px solid var(--accent); margin: 8px 0 20px; overflow-wrap: anywhere; }
.contact__mail:hover { color: var(--accent-dark); }
.contact__note { color: var(--ink-2); font-size: 16px; }

/* 頁尾 */
.footer { background: var(--pine-950); color: #b9c6c1; font-size: 15px; padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.6fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__name { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--paper); letter-spacing: .06em; margin-bottom: 8px; }
.footer__title { color: var(--paper); font-weight: 700; margin-bottom: 12px; }
.footer a { display: block; text-decoration: none; padding: 4px 0; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__legal { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(246, 244, 239, .14); font-size: 13px; }

/* 進場 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* 平板以下 */
@media (max-width: 960px) {
  .about, .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .product { grid-template-columns: 1fr; gap: 40px; }
  .product--flip .product__visual { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  html { scroll-padding-top: 72px; }
  .utility__inner > span { display: none; }
  .utility__inner { justify-content: flex-end; }
  .nav { min-height: 60px; }
  .nav__toggle { display: block; margin-right: -12px; }
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links .nav__cta { margin-top: 16px; text-align: center; padding: 14px; }
  .hero__slides { height: 560px; }
  .biz { grid-template-columns: 1fr; }
  .biz__body { padding: 24px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .contact__card { padding: 28px 24px; }
  .trip { position: static; border-width: 1px 0 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
  .section__head { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
