:root {
  --bg: #f4f1ea;
  --bg-deep: #e6e0d2;
  --text: #1f2d20;
  --muted: #677362;
  --line: rgba(31, 45, 32, 0.12);
  --green: #314d35;
  --green-2: #5b7a5c;
  --accent: #c6a66d;
  --white: #ffffff;
  --shadow: 0 25px 60px rgba(20, 31, 21, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.75), transparent 35%),
    linear-gradient(180deg, #f6f3ec 0%, #efeadf 100%);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 110px 0; position: relative; }
.eyebrow {
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  color: var(--green-2);
  margin-bottom: 14px;
}
.section-heading h2,
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
}
.section-heading h2 { font-size: clamp(2.2rem, 4vw, 4rem); margin: 0 0 14px; }
.section-heading p { color: var(--muted); line-height: 1.9; max-width: 760px; }
.centered { text-align: center; }
.centered p { margin-inline: auto; }
.glass {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cursor-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198,166,109,0.12), transparent 60%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: left 0.15s ease, top 0.15s ease;
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  padding: 18px 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.site-header.scrolled {
  background: rgba(244,241,234,0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  padding: 12px 0;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 31;
}
.brand-mark {
  width: 48px; height: 48px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), #203724);
  color: var(--white);
  font-weight: 800;
  box-shadow: var(--shadow);
}
.brand-text strong { display: block; font-size: 1rem; }
.brand-text small { display: block; color: var(--muted); letter-spacing: 0.08em; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  position: relative;
  font-size: 0.95rem;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -7px;
  width: 100%; height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }
.nav-toggle {
  display: none; border: 0; background: transparent; padding: 0; cursor: pointer;
  flex-direction: column; gap: 5px; z-index: 31;
}
.nav-toggle span {
  width: 28px; height: 2px; background: var(--text); display: block; transition: 0.3s ease;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-slides,
.hero-slide,
.hero-slide img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.hero-slide {
  opacity: 0;
  transition: opacity 1.2s ease, transform 6s ease;
  transform: scale(1.05);
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero-slide img { object-fit: cover; }
.hero-overlay {
  background:
    linear-gradient(120deg, rgba(16,25,18,0.76) 10%, rgba(16,25,18,0.34) 48%, rgba(16,25,18,0.7) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.2));
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 130px;
  padding-bottom: 90px;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.94;
  margin: 0;
  max-width: 780px;
}
.hero-copy {
  max-width: 660px;
  line-height: 1.9;
  font-size: 1.05rem;
  margin: 22px 0 0;
  color: rgba(255,255,255,0.84);
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #f2d8a7, var(--accent));
  color: #2a241a;
  box-shadow: 0 10px 30px rgba(198,166,109,0.3);
}
.btn-secondary {
  border-color: rgba(255,255,255,0.34);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.hero-panel {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-radius: var(--radius);
  padding: 24px;
  max-width: 860px;
}
.hero-panel strong { display: block; margin-bottom: 8px; font-size: 1rem; }
.hero-panel span { color: rgba(255,255,255,0.78); font-size: 0.96rem; line-height: 1.8; }
.slider-dots {
  position: absolute;
  right: 42px;
  bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 3;
}
.dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.65);
  background: transparent;
  cursor: pointer;
}
.dot.active { background: var(--white); }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  z-index: 3;
  cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
}
.slider-arrow span { font-size: 2rem; line-height: 1; }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }
.scroll-indicator {
  position: absolute;
  left: 42px;
  bottom: 36px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.75);
}
.scroll-indicator span {
  width: 1px; height: 70px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.8));
  display: block;
  animation: drop 1.6s infinite;
}
@keyframes drop {
  0% { transform: scaleY(0.4); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.4); transform-origin: bottom; opacity: 0.35; }
}

.intro-strip { padding-top: 52px; }
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.intro-card,
.service-card,
.project-card,
.timeline-item,
.contact-card,
.about-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.intro-card {
  background: rgba(255,255,255,0.65);
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.75);
}
.intro-card span,
.service-card span,
.timeline-item span,
.project-body span {
  display: inline-block;
  color: var(--green-2);
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  margin-bottom: 14px;
}
.intro-card h3,
.service-card h3,
.timeline-item h3,
.project-card h3,
.about-card h3 { margin: 0 0 12px; font-size: 1.28rem; }
.intro-card p,
.service-card p,
.timeline-item p,
.project-body p,
.about-card p,
.contact-copy p { color: var(--muted); line-height: 1.85; margin: 0; }

.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: start;
}
.about-cards {
  display: grid;
  gap: 18px;
}
.about-card {
  padding: 30px;
  background: linear-gradient(135deg, rgba(49,77,53,0.93), rgba(91,122,92,0.85));
  color: var(--white);
}
.about-card p { color: rgba(255,255,255,0.82); }

.services { background: linear-gradient(180deg, rgba(255,255,255,0.48), rgba(255,255,255,0.18)); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.service-card {
  background: rgba(255,255,255,0.82);
  padding: 32px 28px;
  border: 1px solid rgba(49,77,53,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover,
.project-card:hover { transform: translateY(-6px); }

.project-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 26px;
}
.filter-btn {
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.65);
  color: var(--text);
  cursor: pointer;
}
.filter-btn.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: rgba(255,255,255,0.9);
  overflow: hidden;
  border: 1px solid rgba(49,77,53,0.08);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.project-card.hide {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  position: absolute;
}
.project-card img { height: 250px; width: 100%; object-fit: cover; }
.project-body { padding: 24px; }

.parallax-section {
  background:
    linear-gradient(120deg, rgba(25,40,28,0.84), rgba(32,53,38,0.8)),
    url('assets/hero-2.jpg') center/cover no-repeat fixed;
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 4.8rem);
  line-height: 0.95;
  margin-bottom: 10px;
}
.stat span { color: rgba(255,255,255,0.78); }

.timeline {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.timeline-item {
  background: rgba(255,255,255,0.82);
  padding: 28px;
  border: 1px solid rgba(49,77,53,0.08);
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: 22px; right: 22px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(49,77,53,0.08);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 30px;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-card {
  background: linear-gradient(135deg, rgba(49,77,53,0.95), rgba(87,111,79,0.9));
  padding: 30px;
}
.contact-card label {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.contact-card input,
.contact-card textarea {
  width: 100%;
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  padding: 14px 16px;
  outline: none;
}
.contact-card input::placeholder,
.contact-card textarea::placeholder { color: rgba(255,255,255,0.65); }
.contact-card .btn { margin-top: 12px; width: 100%; }

.site-footer {
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
}
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-footer p { color: var(--muted); }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

@media (max-width: 1100px) {
  .service-grid,
  .timeline,
  .project-grid,
  .intro-grid,
  .stats-grid,
  .hero-panel,
  .split-layout,
  .contact-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline { gap: 18px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(244,241,234,0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { font-size: 1.2rem; }
  .hero-panel,
  .service-grid,
  .timeline,
  .project-grid,
  .intro-grid,
  .stats-grid,
  .split-layout,
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: clamp(2.7rem, 15vw, 4.6rem); }
  .slider-arrow { display: none; }
  .slider-dots {
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
    bottom: 100px;
  }
  .scroll-indicator {
    left: 50%;
    transform: translateX(-50%);
    bottom: 34px;
  }
  .hero-content { padding-top: 120px; }
  .section { padding: 88px 0; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 24px, 1180px); }
  .hero-copy { font-size: 0.98rem; }
  .intro-card,
  .service-card,
  .timeline-item,
  .project-body,
  .contact-card,
  .about-card { padding: 24px; }
}
