:root {
  --ink: #17201a;
  --muted: #5d685f;
  --line: #d9dfda;
  --paper: #f7f7f2;
  --white: #ffffff;
  --green: #256833;
  --green-dark: #173f22;
  --green-soft: #e8f0e8;
  --warm: #e9e0d4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin: 0;
}

.site-header {
  min-height: 88px;
  padding: 14px clamp(22px, 4.5vw, 76px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1.2;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.site-menu {
  position: relative;
}

.site-menu summary {
  padding: 12px 18px;
  color: var(--white);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.site-menu summary::after {
  margin-left: 12px;
  content: "＋";
}

.site-menu[open] summary::after {
  content: "－";
}

.site-menu-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 12px);
  right: 0;
  width: min(620px, calc(100vw - 36px));
  padding: 24px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(14, 45, 25, 0.16);
}

.site-menu nav {
  display: grid;
  align-content: start;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}

.site-menu nav + nav {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.site-menu nav p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.site-menu nav a {
  padding: 8px 0;
}

.site-menu summary:focus-visible,
.site-menu nav a:focus-visible,
.button:focus-visible {
  outline: 3px solid #9ac5a3;
  outline-offset: 4px;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  background: var(--white);
}

.hero-copy {
  padding: clamp(72px, 9vw, 145px) clamp(34px, 7vw, 118px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin-top: 24px;
  max-width: 780px;
  font-size: clamp(45px, 5.2vw, 82px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.13;
}

.hero-lead {
  max-width: 650px;
  margin-top: 32px;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 21px);
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 11px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
}

.button-primary {
  color: var(--white);
  background: var(--green);
}

.button-secondary {
  background: transparent;
}

.hero-summary {
  max-width: 620px;
  margin-top: 66px;
  padding-top: 25px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.hero-summary div {
  display: flex;
  gap: 11px;
  align-items: baseline;
}

.hero-summary dt {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.hero-summary dd {
  font-size: 14px;
  font-weight: 700;
}

.hero-media {
  position: relative;
  min-height: 700px;
  background: var(--warm);
}

.hero-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media figcaption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  padding: 20px 23px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: rgba(17, 29, 20, 0.88);
  font-size: 14px;
  font-weight: 600;
}

.hero-media figcaption span {
  font-size: 10px;
  letter-spacing: 0.16em;
}

.section {
  padding: clamp(80px, 9vw, 145px) clamp(22px, 6.5vw, 105px);
}

.section-heading {
  margin-bottom: 54px;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  align-items: end;
  gap: 70px;
}

.section-heading h2,
.about-title h2,
.contact-section h2 {
  margin-top: 11px;
  font-size: clamp(38px, 4.5vw, 66px);
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.section-heading > p {
  color: var(--muted);
  font-size: 17px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project-card {
  min-height: 560px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.project-icon {
  width: 88px;
  height: 88px;
  margin-top: 52px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid #c4d4c6;
  border-radius: 50%;
  overflow: hidden;
}

.project-icon img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.project-card h3 {
  margin-top: 42px;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.3;
}

.project-card h4 {
  margin-top: 9px;
  color: var(--green);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.project-card > p {
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
}

.project-status {
  margin-top: auto;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.privacy-note {
  margin-top: 20px;
  color: #798079;
  font-size: 12px;
}

.services-section {
  color: var(--white);
  background: var(--green-dark);
}

.section-heading-light .eyebrow {
  color: #b9d5bf;
}

.section-heading-light > p {
  color: #cad5cc;
}

.capability-list {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.capability-list article {
  padding: 35px 0;
  display: grid;
  grid-template-columns: 80px minmax(260px, 0.8fr) 1fr;
  gap: 40px;
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.capability-list span {
  color: #b9d5bf;
  font-size: 12px;
  font-weight: 800;
}

.capability-list h3 {
  font-size: clamp(22px, 2.2vw, 33px);
  line-height: 1.4;
}

.capability-list p {
  max-width: 650px;
  color: #cad5cc;
}

.works-section {
  background: var(--paper);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.work-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}

.work-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-copy {
  padding: 27px 27px 32px;
}

.work-copy span {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.work-copy h3 {
  margin-top: 11px;
  font-size: 22px;
  line-height: 1.4;
}

.work-copy p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.about-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(60px, 10vw, 170px);
  background: var(--white);
}

.about-copy {
  padding-top: 24px;
}

.about-copy > p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 17px;
}

.experience-list {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.experience-list div {
  padding: 17px 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.experience-list dt {
  color: var(--green);
  font-weight: 800;
}

.experience-list dd {
  color: var(--muted);
}

.contact-section {
  padding: clamp(68px, 8vw, 120px) clamp(22px, 6.5vw, 105px);
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: end;
  color: var(--white);
  background: var(--green);
}

.contact-section .eyebrow {
  color: #d3e5d7;
}

.contact-section h2 {
  max-width: 780px;
}

.button-light {
  flex: 0 0 auto;
  color: var(--green-dark);
  background: var(--white);
  border-color: var(--white);
}

footer {
  padding: 30px clamp(22px, 6.5vw, 105px);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.footer-brand strong {
  color: var(--ink);
}

@media (max-width: 1050px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 680px;
  }

  .hero-media {
    min-height: 620px;
  }

  .project-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 480px;
  }

  .work-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
  }

  .work-card > img {
    height: 100%;
    aspect-ratio: auto;
  }

  .about-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 72px;
    padding: 10px 18px;
    gap: 14px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .site-menu summary {
    padding: 10px 13px;
    font-size: 13px;
  }

  .site-menu-panel {
    width: min(410px, calc(100vw - 36px));
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-menu nav + nav {
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-copy {
    min-height: auto;
    padding: 68px 22px 62px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-summary {
    margin-top: 46px;
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .hero-media {
    min-height: 500px;
  }

  .hero-media figcaption {
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: grid;
    gap: 4px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-card {
    min-height: 500px;
    padding: 26px;
  }

  .capability-list article {
    grid-template-columns: 46px 1fr;
    gap: 14px;
  }

  .capability-list p {
    grid-column: 2;
  }

  .work-card {
    display: block;
  }

  .work-card > img {
    aspect-ratio: 4 / 3;
  }

  .experience-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-section {
    align-items: stretch;
    flex-direction: column;
    gap: 35px;
  }

  .button-light {
    align-self: flex-start;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

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