:root {
  --ink: #092f29;
  --muted: #5b746d;
  --forest: #0d4b38;
  --green: #1f8f5a;
  --leaf: #b8e35a;
  --sea: #1aa0b3;
  --paper: #fffdf4;
  --mint: #eaf7ed;
  --line: rgba(9, 47, 41, .14);
  --shadow: 0 22px 60px rgba(9, 47, 41, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button, a { font: inherit; }
button { color: inherit; }

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 4px;
  background: rgba(255,255,255,.18);
}
.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--leaf), var(--sea));
}

.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  display: flex;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(9, 47, 41, .72);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}
.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}
.nav a:hover { background: rgba(255,255,255,.16); }

.language-switch {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(9, 47, 41, .72);
  backdrop-filter: blur(14px);
  text-decoration: none;
  font-size: 14px;
  font-weight: 950;
}
.language-switch:hover { background: rgba(9, 47, 41, .92); }

.mobile-menu {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 12px;
  right: 12px;
  z-index: 9999;
  display: flex;
  gap: 8px;
  height: 48px;
}
.mobile-menu__links {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 48px;
  padding: 5px 13px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: rgba(9, 47, 41, .9);
  box-shadow: 0 8px 24px rgba(4, 25, 21, .22);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu__links::-webkit-scrollbar { display: none; }
.mobile-menu__links a {
  flex: 0 0 auto;
  padding: 7px 8px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}
.mobile-menu__language {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 48px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  color: #fff;
  background: rgba(9, 47, 41, .9);
  box-shadow: 0 8px 24px rgba(4, 25, 21, .22);
  text-decoration: none;
  font-size: 14px;
  font-weight: 950;
}

@media (min-width: 941px) {
  .mobile-menu {
    display: none !important;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--forest);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(184, 227, 90, .38), transparent 28%),
    linear-gradient(90deg, rgba(5, 35, 29, .92) 0%, rgba(5, 35, 29, .72) 44%, rgba(5, 35, 29, .2) 100%),
    linear-gradient(0deg, rgba(5, 35, 29, .86), transparent 55%);
}
.hero__media {
  position: absolute;
  inset: 0;
  transform: scale(1.04);
  animation: heroDrift 16s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to { transform: scale(1.1) translate3d(-1.4%, -1%, 0); }
}
.hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 130px 0 70px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--leaf);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.04;
  font-weight: 950;
}
.hero__lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(18px, 2vw, 23px);
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin-top: 38px;
}
.hero__stat {
  min-height: 120px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.hero__stat strong {
  display: block;
  color: var(--leaf);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  font-weight: 950;
}
.hero__stat span {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,.86);
}

.section {
  padding: clamp(72px, 9vw, 118px) 0;
  position: relative;
}
.section--tint { background: var(--mint); }
.section--dark {
  color: #fff;
  background: linear-gradient(135deg, #082b25, #0d4b38 55%, #116e70);
}
.section--dark .section__head p,
.section--dark .eyebrow { color: rgba(255,255,255,.78); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: #f7fff7;
}
.split,
.section__head,
.timeline,
.carbon-grid,
.cert-grid,
.strategy-grid,
.action-grid,
.gallery-grid,
.filter-tabs {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
}
.section__head {
  margin-bottom: 34px;
}
.section__head h2,
.section__copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.16;
  font-weight: 950;
}
.section__head p,
.section__copy p {
  max-width: 980px;
  color: var(--muted);
  font-size: 18px;
}
.section--dark .section__head h2 {
  color: #f7fff7;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .26);
}
.section--dark .section__head p {
  color: rgba(255, 255, 255, .86);
}
.section--dark .section__head .eyebrow {
  color: #d7f77a;
}
.section--dark .carbon-card span,
.section--dark .carbon-card small {
  color: rgba(255, 255, 255, .88);
}
.section--dark .carbon-card strong {
  color: #d7f77a;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
}
.section--dark .gallery-item span,
.section--dark .strategy-card b,
.section--dark .strategy-card span {
  color: #fffdf4;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .42);
}
.section--dark .filter-tabs button {
  color: #f7fff7;
  background: rgba(255, 255, 255, .16);
}
.section--dark .filter-tabs button.is-active {
  color: #072b25;
  background: #d7f77a;
}

.pill-list,
.feature-grid,
.timeline,
.carbon-grid,
.cert-grid,
.strategy-grid,
.action-grid,
.gallery-grid {
  display: grid;
  gap: 16px;
}
.pill-list {
  grid-template-columns: repeat(3, max-content);
  margin-top: 28px;
}
.pill-list span,
.filter-tabs button {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--forest);
  background: rgba(184, 227, 90, .35);
  font-weight: 900;
}
.image-card {
  position: relative;
  min-height: 470px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #dbeee2;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.image-card span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #fff;
  background: rgba(9,47,41,.78);
}
.image-card img,
.strategy-card img,
.gallery-item img {
  transition: transform .55s ease, filter .55s ease;
}
.image-card:hover img,
.strategy-card:hover img,
.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}
.feature-grid article {
  min-height: 142px;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--sea));
}
.feature-grid strong,
.feature-grid span {
  display: block;
}
.feature-grid strong { font-size: 22px; }
.feature-grid span { margin-top: 8px; color: rgba(255,255,255,.86); }

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.timeline__item,
.carbon-card,
.cert,
.action-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(9,47,41,.08);
}
.timeline__item b {
  display: block;
  color: var(--green);
  font-size: 34px;
  line-height: 1;
}
.timeline__item span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}

.carbon-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.carbon-card {
  min-height: 220px;
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.22);
}
.carbon-card span,
.carbon-card small {
  display: block;
  color: rgba(255,255,255,.78);
}
.carbon-card strong {
  display: block;
  margin: 24px 0 14px;
  color: var(--leaf);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  font-weight: 950;
}

.cert-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cert {
  min-height: 166px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.cert b,
.cert span {
  display: block;
}
.cert b { font-size: 22px; }
.cert span { margin-top: 10px; color: var(--muted); }
.cert::after {
  content: "點選檢視證書";
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #0d5e6f;
  background: #d9f1ee;
  font-size: 13px;
  font-weight: 900;
}
html[lang="en"] .cert::after {
  content: "View certificate";
}

.strategy-grid,
.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.strategy-card,
.gallery-item {
  position: relative;
  min-height: 360px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--forest);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}
.strategy-card::after,
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5,35,29,.88), transparent 58%);
}
.strategy-card b,
.strategy-card span,
.gallery-item span {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
}
.strategy-card b {
  bottom: 70px;
  font-size: 24px;
}
.strategy-card span {
  bottom: 22px;
  color: rgba(255,255,255,.86);
}
.gallery-item span {
  bottom: 18px;
  font-size: 18px;
  font-weight: 900;
}

.action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.action-card b,
.action-card span {
  display: block;
}
.action-card b { font-size: 22px; }
.action-card span { margin-top: 10px; color: var(--muted); }

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.filter-tabs button {
  border: 0;
  cursor: pointer;
}
.filter-tabs button.is-active {
  color: #072b25;
  background: var(--leaf);
}
.gallery-item.is-hidden {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 22, 19, .86);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__panel {
  position: relative;
  width: min(1020px, 100%);
  transform: translateY(16px) scale(.98);
  transition: transform .25s ease;
}
.lightbox.is-open .lightbox__panel {
  transform: translateY(0) scale(1);
}
.lightbox img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.lightbox p {
  margin: 12px 0 0;
  color: #fff;
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 26px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 940px) {
  .hero > .nav,
  .hero > .language-switch {
    display: none !important;
  }

  .mobile-menu {
    position: absolute !important;
    top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
    left: 12px !important;
    right: 12px !important;
    z-index: 9999 !important;
    display: flex !important;
    gap: 8px;
    height: 48px;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .mobile-menu__links {
    display: flex !important;
    flex: 1 1 auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    height: 48px;
    padding: 5px 13px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    background: rgba(9, 47, 41, .86);
    box-shadow: 0 8px 24px rgba(4, 25, 21, .22);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu__links::-webkit-scrollbar {
    display: none;
  }
  .mobile-menu__links a {
    flex: 0 0 auto;
    padding: 7px 8px;
    border-radius: 999px;
    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 900;
  }
  .mobile-menu__language {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 48px;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    color: #fff !important;
    background: rgba(9, 47, 41, .86);
    box-shadow: 0 8px 24px rgba(4, 25, 21, .22);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 950;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .split,
  .timeline,
  .carbon-grid,
  .cert-grid,
  .strategy-grid,
  .action-grid,
  .gallery-grid,
  .feature-grid,
  .hero__stats {
    grid-template-columns: 1fr;
  }
  .image-card { min-height: 360px; }
  .section { padding: 64px 0; }
}
