@font-face {
  font-family: "LXGW WenKai TC";
  src: url("../docs/LXGWWenKaiTC-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

:root {
  --bg: #f7f9f7;
  --surface: #ffffff;
  --surface-soft: #dad7cd;
  --text: #3a5a40;
  --muted: #588157;
  --line: rgba(58, 90, 64, 0.12);
  --green: #3a5a40;
  --green-deep: #3a5a40;
  --green-mid: #588157;
  --green-soft: rgba(163, 177, 138, 0.18);
  --green-pale: #dad7cd;
  --accent: #a3b18a;
  --navy: #3a5a40;
  --hero-shadow: 0 28px 90px rgba(9, 20, 16, 0.22);
  --card-shadow: 0 10px 30px rgba(23, 35, 60, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 20px;
  --container: min(1200px, calc(100% - 48px));
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 30;
  width: 100%;
  background: rgba(247, 249, 247, 0);
  border-bottom: 1px solid rgba(163, 177, 138, 0);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 249, 247, 0.8);
  border-bottom-color: rgba(58, 90, 64, 0.12);
}

.site-header.is-scrolled .site-nav {
  color: var(--green);
}

.nav-shell {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle,
.menu-backdrop {
  display: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 56px;
  min-height: var(--header-height);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.14rem;
}

.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  padding: 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--green-mid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    url("../images/bg2.webp") center/cover no-repeat;
  transform: scale(1.05);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(8, 18, 12, 0.2) 0%, rgba(8, 18, 12, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 120px 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 4.8rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: clamp(0.02em, 1.4vw, 0.28em);
  white-space: nowrap;
  text-shadow: var(--hero-shadow);
}

.hero h1 span {
  display: inline;
}

.hero-company-en {
  margin: 18px 0 0;
  font-family: "Montserrat", "Noto Sans SC", sans-serif;
  font-size: clamp(0.95rem, 1.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: var(--hero-shadow);
}

.hero-subtitle {
  margin: 24px 0 0;
  font-size: clamp(1.375rem, 2.2vw, 2.2rem);
  font-weight: 500;
  transform: translateY(50%);
  white-space: nowrap;
  text-shadow: var(--hero-shadow);
}

.section {
  padding: 96px 0;
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading.center {
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.54rem, 2.8vw, 2.66rem);
  line-height: 1.06;
}

.heading-line {
  display: block;
  width: 88px;
  height: 6px;
  border-radius: 999px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-mid) 100%);
}

.section-copy {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--green-mid);
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.info-card,
.service-card,
.about-copy-card,
.vision-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(23, 35, 60, 0.06);
  box-shadow: var(--card-shadow);
}

.info-card {
  text-align: center;
  padding: 36px 28px;
  aspect-ratio: 1.28 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-pale);
  color: var(--green-mid);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.info-card h3,
.service-card h3,
  .project-caption strong {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.3;
  }
  
.info-card p,
.service-card p,
.about-copy-card p,
.vision-card p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.about-copy-card {
  margin-top: 28px;
  padding: 34px 40px;
}

.services-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at top left, rgba(163, 177, 138, 0.12), transparent 24%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  aspect-ratio: 1.28 / 1;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats-shell {
  position: relative;
  margin-top: 58px;
  padding-bottom: 34px;
}

.stats-backdrop {
  height: 260px;
  border-radius: 28px;
  background:
    linear-gradient(rgba(58, 90, 64, 0.16), rgba(58, 90, 64, 0.16)),
    url("../images/bg3.webp") center/cover no-repeat;
  box-shadow: var(--card-shadow);
}

.stats-row {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 64px));
  margin: -74px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 18px 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 48px rgba(23, 35, 60, 0.12);
}

.stat-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 16px 18px;
  text-align: center;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 42px;
  background: rgba(23, 35, 60, 0.12);
  transform: translateY(-50%);
}

.stat-item strong {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  color: var(--green-mid);
}

.stat-item span {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}

.project-card {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  text-align: left;
  transition: transform 180ms ease, color 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
}

.project-media {
  display: block;
  position: relative;
  height: 16rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.project-hover {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px;
  color: #fff;
  font-size: 0.95rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 100%);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 300ms ease, transform 300ms ease;
}

.project-card:hover .project-media img,
.project-card:focus-visible .project-media img {
  transform: scale(1.08);
}

.project-card:hover .project-hover,
.project-card:focus-visible .project-hover {
  opacity: 1;
  transform: translateY(0);
}

.project-copy {
  display: block;
  padding: 22px 2px 0;
}

.project-copy strong {
  display: block;
  font-size: 1.85rem;
  line-height: 1.28;
}

.project-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--accent);
  font-size: 0.98rem;
}

.project-meta::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #3a5a40 100%);
  box-shadow: 0 0 0 3px rgba(163, 177, 138, 0.16);
}

.project-excerpt {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.82;
}

.vision-layout {
  max-width: 1320px;
  margin: 0 auto;
}

.vision-copy {
  max-width: 1320px;
  padding: 18px 0 0;
}

.vision-copy p {
  margin: 0;
  font-size: clamp(1.08rem, 1.4vw, 1.26rem);
  line-height: 1.95;
  color: #24324d;
}

.vision-copy p + p {
  margin-top: 42px;
}

.vision-copy strong {
  color: var(--green-mid);
}

.vision-banner {
  margin-top: 52px;
  border-radius: 16px;
  background:
    linear-gradient(rgba(58, 90, 64, 0.37), rgba(58, 90, 64, 0.37)),
    url("../images/bg1.webp") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 48px 24px;
  box-shadow: 0 18px 42px rgba(58, 90, 64, 0.18);
}

.vision-banner strong {
  display: block;
  font-size: clamp(1.35rem, 5vw, 3rem);
  line-height: 1.25;
  white-space: nowrap;
}

.vision-banner span {
  display: block;
  margin-top: 18px;
  font-size: 1.28rem;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer {
  width: 100%;
  background: var(--navy);
  color: #f7fbff;
}

.footer-shell {
  padding: 58px 0 43px;
}

.footer-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(42px, 8vw, 112px);
}

.footer-logo {
  display: block;
}

.footer-logo-image {
  width: clamp(139px, 13.2vw, 185px);
  height: auto;
  object-fit: contain;
  display: block;
}

.footer-top p {
  margin: 0;
  color: rgba(247, 251, 255, 0.84);
  font-size: 0.92rem;
  text-align: left;
}

.footer-bottom {
  margin-top: 45px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.footer-bottom span {
  color: rgba(247, 251, 255, 0.72);
  font-size: 0.77rem;
}

.project-modal[hidden] {
  display: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.project-modal-panel {
  position: relative;
  z-index: 1;
  width: min(72rem, calc(100% - 32px));
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.modal-gallery {
  position: relative;
  min-height: 50vh;
  background: #0f172c;
}

.modal-image-frame,
.modal-image-frame img {
  width: 100%;
  height: 100%;
}

.modal-image-frame img {
  object-fit: cover;
}

.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #111;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.modal-arrow-left {
  left: 18px;
}

.modal-arrow-right {
  right: 18px;
}

.modal-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.modal-dot {
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.modal-dot.is-active {
  width: 34px;
  border-radius: 999px;
  background: #fff;
}

.modal-details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 32px;
  background: #fff;
  overflow-y: auto;
  max-height: 40vh;
}

.modal-details h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.18;
}

.modal-meta {
  margin: 18px 0 0;
  color: var(--accent);
  font-size: 1rem;
}

.modal-description {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.modal-info-card {
  margin-top: 34px;
  padding: 34px 36px;
  border-radius: 18px;
  background: #f6f8fb;
}

.modal-info-card h4 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-highlights {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.modal-highlights li {
  position: relative;
  padding-left: 18px;
  line-height: 1.75;
  color: #35445f;
}

.modal-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-mid);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .about-highlights,
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(760px, calc(100% - 32px));
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .project-modal-panel {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 1200px);
    max-height: calc(100vh - 28px);
  }

  .modal-gallery {
    min-height: 420px;
  }

  .vision-copy {
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  :root {
    --container: min(100% - 28px, 1200px);
  }

  .nav-shell {
    min-height: var(--header-height);
    padding: 0;
    align-items: center;
    justify-content: flex-end;
  }

  .site-header,
  .site-header.is-scrolled {
    background: transparent;
    border-bottom-color: transparent;
  }

  .menu-toggle {
    position: relative;
    z-index: 34;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    min-height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 8px;
    background: rgba(8, 18, 12, 0.42);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 31;
    display: block;
    background: rgba(8, 18, 12, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 32;
    width: max(25vw, 156px);
    max-width: calc(100vw - 56px);
    min-height: 100dvh;
    padding: calc(var(--header-height) + 24px) 22px 34px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(58, 90, 64, 0.8);
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.24);
    transform: translateX(100%);
    transition: transform 220ms ease;
  }

  .site-header.is-scrolled .site-nav {
    color: rgba(255, 255, 255, 0.88);
  }

  .site-nav a {
    min-height: auto;
    width: auto;
    padding: 6px 0;
    font-size: 1.08rem;
    text-align: center;
  }

  .site-nav a::after {
    left: 0;
    width: 100%;
    transform: scaleX(0);
    transform-origin: center;
  }

  .site-nav a:hover::after,
  .site-nav a:focus-visible::after,
  .site-nav a.is-active::after {
    transform: scaleX(1);
  }

  body.mobile-menu-open .menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.mobile-menu-open .site-nav {
    transform: translateX(0);
  }

  .hero-content {
    padding: 108px 0 96px;
  }

  .hero-company-en {
    font-size: clamp(0.56rem, 2.45vw, 0.95rem);
    letter-spacing: 0;
  }

  .hero-subtitle {
    font-size: clamp(1.05rem, 4.2vw, 1.6rem);
  }

  .section {
    padding: 78px 0;
  }

  .about-highlights,
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .stats-shell {
    padding-bottom: 0;
  }

  .stats-backdrop {
    height: 180px;
    border-radius: 22px;
  }

  .stats-row {
    width: calc(100% - 20px);
    margin-top: -38px;
    grid-template-columns: 1fr;
    padding: 10px 0;
  }

  .stat-item {
    min-height: 94px;
  }

  .stat-item::after {
    display: none;
  }

  .info-card,
  .service-card,
  .about-copy-card,
  .vision-banner {
    padding: 26px 22px;
  }

  .info-card,
  .service-card {
    aspect-ratio: auto;
  }


  .modal-details {
      padding: 30px 22px 34px;
      max-height: none;
    }

  .modal-gallery {
      min-height: 42vh;
    }

  .modal-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.7rem;
  }

  .footer-shell {
    padding: 45px 0 34px;
  }

  .footer-top {
    flex-direction: column;
    gap: 18px;
  }

  .footer-top p {
    text-align: center;
  }

  .vision-copy p + p {
    margin-top: 28px;
  }

  .vision-banner span {
    font-size: 1.04rem;
  }

  .vision-banner strong {
    font-size: clamp(1.08rem, 5.4vw, 1.65rem);
  }
}

@media (max-width: 510px) {
  .hero h1 {
    font-size: clamp(1.7rem, 7vw, 3.7rem);
    letter-spacing: clamp(0.02em, 1.2vw, 0.18em);
    white-space: normal;
  }

  .hero h1 span {
    display: block;
  }
}
