:root {
  --green: #718c45;
  --deep: #263029;
  --ink: #30332f;
  --muted: #71766c;
  --paper: #f6f6ef;
  --surface: #fffefa;
  --line: rgba(48, 51, 47, .14);
  --shadow: 0 18px 50px rgba(38, 48, 41, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.72;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.shell { width: min(100% - 48px, 1220px); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 246, 239, .88);
  backdrop-filter: blur(16px);
}
.topbar .shell {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand-mark {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}
.brand-mark img {
  width: min(210px, 42vw);
  max-height: 46px;
  object-fit: contain;
}
.nav {
  display: flex;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 7px 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.nav a:hover {
  border-color: var(--line);
  background: rgba(255, 254, 250, .78);
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 66px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(38, 48, 41, .82), rgba(38, 48, 41, .42) 47%, rgba(38, 48, 41, .10)),
    linear-gradient(0deg, rgba(38, 48, 41, .72), rgba(38, 48, 41, 0) 54%),
    var(--hero) center / cover;
  transform: scale(1.02);
}
.hero .shell {
  position: relative;
  z-index: 1;
  padding: 84px 0 42px;
}
.hero-logo {
  width: min(330px, 62vw);
  max-height: 112px;
  object-fit: contain;
  margin-bottom: 28px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .28));
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, .55);
}
h1 {
  max-width: 960px;
  margin: 0 0 20px;
  font-size: clamp(36px, 7vw, 92px);
  line-height: 1.04;
  letter-spacing: 0;
}
.hero-copy {
  max-width: 720px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, .88);
  font-size: 21px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  border: 1px solid rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
}
.hero-stats div {
  min-height: 92px;
  padding: 17px 18px;
  border-right: 1px solid var(--line);
}
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong {
  display: block;
  color: var(--green);
  font-size: 25px;
  line-height: 1.15;
}
.hero-stats span {
  color: var(--muted);
  font-size: 14px;
}

.intro {
  padding: 72px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .42fr);
  gap: 48px;
  align-items: end;
}
.intro h2,
.case-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.14;
  letter-spacing: 0;
}
.intro p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.intro-statement {
  max-width: 850px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 3.3vw, 36px);
  line-height: 1.58;
  font-weight: 800;
}
.case-index {
  display: grid;
  gap: 10px;
}
.case-index a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.case-index b {
  color: var(--green);
  font-size: 13px;
}
.case-index span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.case-index small {
  color: var(--muted);
  font-size: 13px;
}

.case-section {
  padding: 88px 0 102px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 86px;
}
.case-section:nth-child(odd) { background: #f0f2e8; }
.case-heading {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(300px, .3fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 28px;
}
.case-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, .72);
  color: var(--muted);
  font-size: 13px;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 18px;
  margin-bottom: 18px;
}
.feature figure,
.gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.feature button,
.gallery button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}
.feature img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}
.feature-card {
  min-height: 520px;
  display: grid;
  align-content: end;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--deep);
  color: #fff;
}
.feature-card small {
  color: rgba(255, 255, 255, .66);
  font-weight: 800;
  text-transform: uppercase;
}
.feature-card p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 22px;
  line-height: 1.55;
}
.gallery {
  column-count: 3;
  column-gap: 18px;
}
.gallery figure {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  box-shadow: var(--shadow);
  break-inside: avoid;
}
.gallery img {
  width: 100%;
  height: auto;
  background: #e5e7dd;
  transition: transform .28s ease;
}
.gallery button:hover img { transform: scale(1.025); }
figcaption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}
figcaption span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(20, 24, 21, .88);
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(100%, 1200px);
  max-height: calc(100vh - 112px);
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
.lightbox-caption {
  width: min(100%, 1200px);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
}

footer {
  padding: 42px 0;
  background: var(--deep);
  color: rgba(255, 255, 255, .76);
}
footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
footer a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .42);
}

@media (max-width: 980px) {
  .topbar .shell { align-items: flex-start; flex-direction: column; padding: 13px 0; }
  .brand-mark img { width: min(180px, 54vw); max-height: 42px; }
  .hero { min-height: auto; }
  .hero .shell { padding-top: 112px; }
  .intro-grid,
  .case-heading,
  .feature { grid-template-columns: 1fr; }
  .feature img,
  .feature-card { min-height: 360px; }
  .gallery { column-count: 2; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1220px); }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-stats div:last-child { border-bottom: 0; }
  .intro,
  .case-section { padding: 58px 0; }
  .gallery { column-count: 1; }
  .feature img,
  .feature-card { min-height: 300px; }
  footer .shell { align-items: flex-start; flex-direction: column; }
}
