:root {
  --ink: #20302b;
  --muted: #66736e;
  --paper: #f5f2ea;
  --paper-strong: #ece6d9;
  --white: #fffdf8;
  --wood: #ad7549;
  --wood-dark: #75482d;
  --moss: #405c4e;
  --line: rgba(32, 48, 43, 0.14);
  --shadow: 0 18px 50px rgba(36, 45, 40, 0.11);
  --radius: 24px;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 104px 0; }
.section-tight { padding: 70px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: var(--wood-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
h1 { font-size: clamp(2.7rem, 6vw, 5.7rem); margin-bottom: 28px; }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); margin-bottom: 22px; }
h3 { line-height: 1.4; }
.lead { color: var(--muted); font-size: clamp(1.04rem, 1.4vw, 1.2rem); max-width: 690px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.section-heading > :first-child { max-width: 760px; }
.section-heading p { max-width: 450px; color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(245, 242, 234, 0.88);
  backdrop-filter: blur(16px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px rgba(36,45,40,.04); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; line-height: 1.2; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; color: var(--paper); background: var(--moss);
  font-family: var(--serif); font-size: 1.05rem;
}
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: .67rem; font-weight: 600; letter-spacing: .12em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .92rem; font-weight: 700; }
.nav-links a { position: relative; padding: 26px 0; }
.nav-links a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 20px; height: 2px; background: var(--wood); transition: right .2s ease; }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links .button { padding: 11px 18px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.menu-toggle span { display: block; width: 19px; height: 2px; margin: 4px auto; background: var(--ink); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 1px solid var(--moss); border-radius: 100px;
  color: var(--white); background: var(--moss); font-weight: 800; transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: #314a3e; }
.button-outline { color: var(--moss); background: transparent; }
.button-outline:hover { color: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--wood-dark); font-weight: 800; }
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: calc(100vh - 78px); display: grid; align-items: center; padding: 76px 0; }
.hero::before { content: ""; position: absolute; width: 46vw; height: 46vw; min-width: 520px; min-height: 520px; top: -18%; right: -10%; border-radius: 50%; background: #e6dfd0; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.hero h1 span { color: var(--wood-dark); }
.hero-copy { padding: 40px 0; }
.hero-copy .lead { max-width: 630px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 34px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.hero-note span::before { content: "·"; color: var(--wood); margin-right: 9px; }
.structure-scene { position: relative; aspect-ratio: 1 / 1.08; }
.sun { position: absolute; width: 39%; aspect-ratio: 1; top: 4%; right: 4%; border-radius: 50%; background: #caa277; opacity: .7; }
.house {
  position: absolute; inset: 20% 3% 2% 5%; overflow: hidden; border-radius: 4px 110px 4px 4px;
  background: var(--moss); box-shadow: var(--shadow);
}
.house::before { content: ""; position: absolute; width: 70%; height: 100%; right: -25%; top: -34%; background: var(--paper); transform: rotate(45deg); transform-origin: center; }
.frame { position: absolute; inset: 15% 12% 10% 11%; z-index: 2; }
.beam { position: absolute; background: #c69362; box-shadow: inset 0 0 0 1px rgba(78,47,29,.2); }
.beam.v1 { width: 4%; height: 81%; left: 14%; bottom: 0; }
.beam.v2 { width: 4%; height: 94%; left: 49%; bottom: 0; }
.beam.v3 { width: 4%; height: 68%; left: 82%; bottom: 0; }
.beam.h1 { height: 3.6%; width: 82%; left: 14%; bottom: 0; }
.beam.h2 { height: 3.6%; width: 72%; left: 15%; top: 34%; transform: rotate(-18deg); transform-origin: left center; }
.beam.h3 { height: 3.6%; width: 55%; left: 34%; top: 61%; }
.hero-index { position: absolute; z-index: 3; right: 3%; bottom: 5%; color: rgba(255,255,255,.72); font: 800 5.5rem/1 var(--serif); }

/* Cards */
.service-grid, .project-grid, .value-grid, .stats-grid { display: grid; gap: 22px; }
.service-grid { grid-template-columns: repeat(3, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.62); }
.service-card { padding: 36px; transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-no { color: var(--wood); font: 700 1rem/1 var(--serif); }
.service-card h3 { margin: 42px 0 15px; font: 700 1.55rem/1.45 var(--serif); }
.service-card p { color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; list-style: none; }
.tag-list li, .tag { padding: 6px 11px; border-radius: 100px; background: var(--paper-strong); color: var(--wood-dark); font-size: .76rem; font-weight: 800; }

.dark-panel { color: var(--paper); background: var(--ink); }
.dark-panel .eyebrow { color: #d6aa7d; }
.dark-panel p { color: #bcc5c1; }
.value-grid { grid-template-columns: 1.1fr 1fr 1fr; }
.value-card { padding: 32px; border-top: 1px solid rgba(255,255,255,.2); }
.value-card strong { display: block; color: #d9b38d; font: 700 2.1rem/1 var(--serif); }
.value-card h3 { margin: 22px 0 10px; }
.brand-story { background: var(--paper-strong); }
.brand-story .split > div:last-child > p { margin: 0 0 22px; color: var(--muted); font-size: 1.02rem; line-height: 1.95; }
.brand-signoff { display: flex; flex-direction: column; gap: 5px; margin-top: 38px !important; padding-top: 24px; border-top: 1px solid var(--line); }
.brand-signoff strong { color: var(--ink); font: 700 1.45rem/1.3 var(--serif); letter-spacing: .12em; }
.brand-signoff span { color: var(--wood-dark); font-size: .88rem; font-weight: 700; }

/* Project visuals */
.project-grid { grid-template-columns: repeat(2, 1fr); }
.project-card { overflow: hidden; }
.project-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }
.project-feature-reverse { grid-template-columns: minmax(320px, .65fr) minmax(0, 1.35fr); }
.project-feature-reverse .project-gallery { order: 2; }
.project-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--paper); }
.project-gallery img { display: block; width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.project-gallery .project-cover { grid-column: 1 / -1; min-height: 390px; }
.project-feature-copy { align-self: center; }
.project-feature-copy p + p { margin-top: 14px; }
.project-facts { display: grid; gap: 0; margin: 24px 0 0; border-top: 1px solid rgba(32,48,43,.14); }
.project-facts div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(32,48,43,.14); }
.project-facts dt { color: var(--muted); font-size: .78rem; }
.project-facts dd { margin: 0; color: var(--ink); font-size: .84rem; font-weight: 700; }
.project-visual { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #d8d0c0; }
.project-visual.project-photo::before, .project-visual.project-photo::after { content: none; }
.project-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-visual::before, .project-visual::after { content: ""; position: absolute; }
.project-visual::before { inset: 18% 12% 0; clip-path: polygon(0 38%, 48% 0, 100% 38%, 100% 100%, 0 100%); background: var(--moss); }
.project-visual::after { width: 42%; height: 48%; left: 28%; bottom: 0; border: 8px solid #bc8759; border-bottom: 0; box-shadow: 65px 0 0 -53px #bc8759, -65px 0 0 -53px #bc8759; }
.visual-roof { background: #c9d0c9; }
.visual-roof::before { inset: 17% 6% 12%; clip-path: polygon(2% 23%, 96% 0, 100% 10%, 6% 34%, 6% 100%, 1% 100%); background: #556b5e; }
.visual-roof::after { width: 87%; height: 54%; left: 9%; bottom: 12%; border: 7px solid #bd8859; border-top: 0; box-shadow: inset 0 -47px 0 rgba(255,255,255,.12); }
.visual-interior { background: #e9e1d4; }
.visual-interior::before { inset: 9% 15% 10%; clip-path: none; background: linear-gradient(90deg, #b27b52 0 8%, transparent 8% 92%, #b27b52 92%), linear-gradient(#b27b52 0 8%, transparent 8% 92%, #b27b52 92%); }
.visual-interior::after { width: 47%; height: 27%; left: 27%; bottom: 12%; border: 0; border-radius: 60px 60px 8px 8px; background: #52665a; box-shadow: -130px 15px 0 -18px #c8a883, 130px 15px 0 -18px #c8a883; }
.visual-cabinet { background: #d7c5ad; }
.visual-cabinet::before { inset: 8% 16% 0; clip-path: none; background: repeating-linear-gradient(90deg, #8c613e 0 2px, #c9986d 2px calc(33.33% - 2px), #8c613e calc(33.33% - 2px) 33.33%); }
.visual-cabinet::after { width: 28%; height: 24%; left: 16%; bottom: 0; border: 0; background: var(--paper); box-shadow: 104px -72px 0 -2px #5c6c62; }
.visual-detail { background: #9aa59e; }
.visual-detail::before { inset: -20% 42% -20% 34%; clip-path: none; background: #c28d5d; transform: rotate(35deg); box-shadow: 48px 0 0 #d4a779, -48px 0 0 #a66f42; }
.visual-detail::after { width: 46%; height: 3px; left: 27%; top: 50%; border: 0; background: var(--paper); transform: rotate(-55deg); }
.placeholder-label { position: absolute; z-index: 3; top: 18px; right: 18px; padding: 6px 10px; border-radius: 100px; color: var(--ink); background: rgba(255,253,248,.86); font-size: .7rem; font-weight: 800; backdrop-filter: blur(8px); }
.project-copy { padding: 28px; }
.project-copy h3 { margin: 10px 0 8px; font: 700 1.35rem/1.4 var(--serif); }
.project-copy p { margin: 0; color: var(--muted); font-size: .94rem; }
.project-meta { display: flex; gap: 16px; color: var(--wood-dark); font-size: .76rem; font-weight: 800; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 34px; }
.filter-btn { padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink); background: transparent; font-weight: 800; }
.filter-btn.active, .filter-btn:hover { color: var(--white); border-color: var(--moss); background: var(--moss); }
.project-card.is-hidden { display: none; }
.project-note { margin-top: 26px; padding: 18px 22px; border-left: 3px solid var(--wood); background: var(--paper-strong); color: var(--muted); font-size: .9rem; }

/* Inner pages */
.page-hero { position: relative; overflow: hidden; padding: 106px 0 76px; border-bottom: 1px solid var(--line); }
.page-hero::after { content: attr(data-index); position: absolute; right: 4vw; bottom: -36px; color: rgba(64,92,78,.08); font: 700 clamp(9rem, 20vw, 18rem)/1 var(--serif); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.7rem, 6vw, 5rem); }
.breadcrumbs { display: flex; gap: 8px; margin-bottom: 30px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.breadcrumbs span { color: var(--wood-dark); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.sticky-copy { position: sticky; top: 116px; }
.service-detail { display: grid; grid-template-columns: 80px 1fr; gap: 25px; padding: 36px 0; border-top: 1px solid var(--line); }
.service-detail:last-child { border-bottom: 1px solid var(--line); }
.service-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: var(--paper); background: var(--moss); font: 700 1.4rem/1 var(--serif); }
.service-detail h3 { margin: 0 0 10px; font: 700 1.5rem/1.45 var(--serif); }
.service-detail p { color: var(--muted); }
.check-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 25px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--wood-dark); font-weight: 900; }

/* Process */
.prework-section { padding-bottom: 0; }
.prework-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.prework-card { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,248,.62); }
.prework-card > span { color: var(--wood); font: 700 .9rem/1 var(--serif); }
.prework-card h3 { margin: 24px 0 10px; font: 700 1.35rem/1.4 var(--serif); }
.prework-card p { margin-bottom: 0; color: var(--muted); }
.prework-rule { display: flex; align-items: flex-start; gap: 22px; margin-top: 20px; padding: 22px 26px; border-left: 4px solid var(--wood); border-radius: 0 14px 14px 0; background: var(--paper-strong); }
.prework-rule strong { flex: 0 0 auto; color: var(--wood-dark); }
.prework-rule p { margin: 0; color: var(--muted); }
.timeline { counter-reset: process; max-width: 850px; margin: 0 auto; }
.step { counter-increment: process; display: grid; grid-template-columns: 94px 1fr; gap: 30px; position: relative; padding-bottom: 56px; }
.step::before { content: ""; position: absolute; left: 40px; top: 70px; bottom: 8px; width: 1px; background: var(--line); }
.step:last-child::before { display: none; }
.step-no { width: 80px; height: 80px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--wood-dark); font: 700 1.4rem/1 var(--serif); }
.step-no::before { content: "0" counter(process); }
.step-card { padding: 5px 0; }
.step-card h3 { margin: 0 0 10px; font: 700 1.55rem/1.4 var(--serif); }
.step-card p { color: var(--muted); }
.step-output { display: inline-flex; gap: 8px; padding: 6px 12px; border-radius: 8px; background: var(--paper-strong); color: var(--wood-dark); font-size: .8rem; font-weight: 800; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: 70px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 20px; padding: 25px 0; border: 0; color: var(--ink); background: transparent; text-align: left; font-weight: 800; }
.faq-question span:last-child { color: var(--wood-dark); font-size: 1.4rem; transition: transform .2s ease; }
.faq-item.open .faq-question span:last-child { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer > div { padding: 0 45px 26px 0; color: var(--muted); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 46px; align-items: start; }
.contact-card { padding: 30px; margin-bottom: 16px; }
.contact-card small { display: block; color: var(--muted); font-weight: 700; }
.contact-card strong { display: block; margin: 6px 0; font-size: 1.15rem; }
.pending { color: var(--wood-dark); font-size: .8rem; font-weight: 800; }
.contact-flow { display: grid; gap: 10px; margin: 22px 0; }
.contact-flow div { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.contact-flow b { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--white); background: var(--moss); font: 700 .78rem/1 var(--serif); }
.form-card { padding: 38px; box-shadow: var(--shadow); background: var(--white); }
.form-card h2 { font-size: 2rem; }
.form-intro { margin: -8px 0 26px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: var(--paper); padding: 12px 14px; color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--wood); box-shadow: 0 0 0 3px rgba(173,117,73,.12); }
.privacy-note { color: var(--muted); font-size: .78rem; }
.summary-box { display: none; margin-top: 24px; padding: 22px; border-radius: 15px; background: var(--paper-strong); }
.summary-box.show { display: block; }
.summary-box h3 { margin-bottom: 8px; font: 700 1.25rem/1.4 var(--serif); }
.summary-box > p { color: var(--muted); }
.summary-box pre { white-space: pre-wrap; margin: 0 0 18px; color: var(--ink); font: .9rem/1.7 var(--sans); }
.copy-status { color: var(--moss); font-size: .82rem; font-weight: 800; }

/* CTA + footer */
.cta-band { padding: 72px 0; background: #d9c9b4; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.cta-inner h2 { max-width: 700px; margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.site-footer { padding: 64px 0 26px; color: #dce3df; background: #1f302a; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .65fr .7fr 1fr; gap: 40px; padding-bottom: 54px; }
.site-footer .brand-mark { color: var(--ink); background: #d4ac83; }
.site-footer .brand small, .site-footer p { color: #9daca5; }
.site-footer h3 { color: #d4ac83; font-size: .8rem; letter-spacing: .14em; }
.footer-links { display: grid; gap: 8px; font-size: .9rem; }
.footer-links a:hover { color: #d4ac83; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #8d9c95; font-size: .75rem; }

/* Utilities and motion */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; transition-duration: .01ms !important; } }

@media (max-width: 900px) {
  .section { padding: 78px 0; }
  .prework-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 18px 20px 26px; border-bottom: 1px solid var(--line); background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links a:not(.button)::after { display: none; }
  .nav-links .button { margin-top: 12px; }
  .hero { min-height: auto; padding: 56px 0 76px; }
  .hero-grid, .split, .faq-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 30px; }
  .structure-scene { width: min(620px, 100%); margin-inline: auto; }
  .service-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-feature { grid-template-columns: 1fr; }
  .project-feature-reverse .project-gallery { order: 0; }
  .project-gallery .project-cover { min-height: 300px; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .sticky-copy { position: static; }
  .faq-layout { gap: 35px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 64px 0; }
  .hero h1 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .project-grid, .form-grid { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery .project-cover { grid-column: auto; min-height: 240px; }
  .project-gallery img { min-height: 210px; }
  .field.full { grid-column: auto; }
  .service-card, .form-card { padding: 26px; }
  .service-detail { grid-template-columns: 56px 1fr; gap: 18px; }
  .service-icon { width: 52px; height: 52px; }
  .step { grid-template-columns: 58px 1fr; gap: 18px; padding-bottom: 45px; }
  .step-no { width: 54px; height: 54px; font-size: 1rem; }
  .step::before { left: 27px; top: 60px; }
  .cta-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .page-hero { padding: 75px 0 58px; }
}
