:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --white: #fffdf8;
  --ink: #202b25;
  --forest: #263b32;
  --olive: #63735f;
  --soft-olive: #e9ede3;
  --muted: #515e54;
  --rule: #d7d9ce;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--white); color: var(--ink); font: 1rem/1.75 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid #8b683c; outline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.19; font-weight: 700; }
.shell { width: min(100% - clamp(2.5rem, 10vw, 11rem), 80rem); margin-inline: auto; }
.skip-link { position: fixed; inset: 0 auto auto 0; z-index: 10; padding: 0.65rem 1rem; background: var(--ink); color: white; transform: translateY(-110%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; inset-block-start: 0; z-index: 5; background: var(--white); border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 5rem; display: flex; justify-content: space-between; align-items: center; gap: 1.65rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: clamp(8.6rem, 14vw, 11.5rem); height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(0.75rem, 1.48vw, 1.65rem); font-size: 0.9375rem; font-weight: 600; }
.site-nav a { white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: #4b614e; text-decoration: underline; text-underline-offset: 0.4em; }
.site-nav .nav-contact { padding: 0.5rem 1rem; border: 1px solid var(--forest); color: var(--forest); }
.site-nav .nav-contact:hover { background: var(--forest); color: white; text-decoration: none; }
.site-nav .nav-employee { border-inline-start: 1px solid var(--rule); padding-inline-start: 0.8rem; color: var(--forest); }
.site-nav .nav-social { color: var(--forest); }
.site-nav .nav-line, .site-nav .nav-line:hover { color: var(--muted); text-decoration: none; }
.site-nav :is(.nav-social, .nav-line) { display: inline-flex; align-items: center; gap: 0.65rem; }
.site-nav :is(.nav-social, .nav-line) img { flex: none; width: 24px; height: 24px; }
.menu-toggle { display: none; min-height: 2.75rem; padding: 0.35rem 0.75rem; border: 1px solid var(--rule); background: transparent; color: var(--forest); cursor: pointer; }
.menu-toggle span { width: 0.95rem; height: 0.7rem; border-block: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }

.hero { background: var(--paper); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.4rem, 4.5vw, 4.6rem); }
.eyebrow { color: #526753; font-size: 0.875rem; font-weight: 650; letter-spacing: 0.12em; }
.hero .eyebrow { display: flex; align-items: center; gap: 0.7rem; }
.hero .eyebrow::before { content: ""; width: 1.9rem; height: 1px; background: var(--olive); }
.hero h1 { margin: 0.75rem 0 1.25rem; font-size: clamp(3.1rem, 6.05vw, 6.2rem); letter-spacing: 0.025em; }
.hero-description { max-width: 23rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.9; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.6rem; margin-top: 1.85rem; }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; padding: 0.5rem 1.1rem; border: 1px solid transparent; font-weight: 650; font-size: 0.9375rem; }
.button-primary { background: var(--forest); color: white; }
.button-primary:hover { background: #385345; }
.button-ghost { border-color: var(--forest); color: var(--forest); }
.button-ghost:hover { background: var(--soft-olive); }
.hero-link { color: var(--forest); border-bottom: 1px solid #7b8b7a; font-weight: 600; }
.hero-link:hover { border-color: var(--forest); }
.hero-media { position: relative; overflow: hidden; height: clamp(26rem, 38vw, 37rem); background: #a4947e; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 57% center; }
.hero-media figcaption { position: absolute; inset: auto 1rem 0.9rem auto; padding: 0.15rem 0.5rem; color: white; background: #202b25da; font-size: 0.8125rem; }

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 0.8rem 2.2rem; margin-bottom: clamp(1.6rem, 3.7vw, 2.7rem); }
.section-heading h2, .about-band h2, .contact-band h2, .news-band h2 { font-size: clamp(2.1rem, 4.05vw, 4rem); letter-spacing: 0.025em; }
.section-heading h2, .about-band h2, .contact-band h2 { margin-top: 0.3rem; }
.section-heading > p, .about-copy > p { color: var(--muted); max-width: 25rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.9rem, 2.3vw, 2rem); }
.project-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); transition: background-color 160ms, border-color 160ms; }
.project-card:hover { border-color: #929f90; background: #f6f8f2; }
.project-media { overflow: hidden; aspect-ratio: 16 / 10; background: #e3e0d7; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease-out; }
.project-card:hover .project-media img { transform: scale(1.035); }
.project-content { position: relative; display: flex; flex: 1; flex-direction: column; align-items: start; gap: 0.15rem; padding: clamp(0.95rem, 2vw, 1.6rem); }
.project-location, .project-spec { color: var(--muted); font-size: 0.9375rem; }
.project-content :is(h2, h3) { margin-block: 0.17rem 0.48rem; font-size: clamp(1.55rem, 2.7vw, 2.45rem); }
.project-link { margin-top: 0.85rem; color: var(--forest); border-bottom: 1px solid #acb6aa; font-size: 0.875rem; font-weight: 650; }

.about-band { background: var(--soft-olive); }
.about-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.4rem, 7vw, 7.5rem); padding-block: clamp(3rem, 7vw, 6.35rem); }
.about-copy > p { max-width: 34rem; font-size: clamp(1rem, 1.55vw, 1.2rem); }
.about-copy > p + p { margin-top: 1rem; }
.about-facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 1.45rem; padding-top: 1.25rem; border-top: 1px solid #c3ccbd; }
.about-facts dt, .contact-details a > span { font-size: 0.875rem; }
.about-facts dd { margin-top: 0.15rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.15rem, 4vw, 3.75rem); }
.service-item { border-top: 2px solid #697c6a; padding-block: 1.25rem 0.6rem; }
.service-item h3 { font-size: 1.55rem; }
.service-item p { margin-top: 0.65rem; color: var(--muted); }
.service-item:target { border-top-color: var(--forest); background: var(--soft-olive); box-shadow: 0 0 0 0.65rem var(--soft-olive); }
.news-band { background: var(--paper); border-top: 1px solid var(--rule); }
.news-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 1.75rem 4rem; padding-block: clamp(3rem, 6vw, 5.35rem); }
.news-inner p { color: var(--muted); margin-top: 0.65rem; }
.news-links { display: grid; }
.news-links a { padding-block: 0.7rem; border-top: 1px solid var(--rule); font-weight: 600; color: var(--forest); }
.news-links a:last-child { border-bottom: 1px solid var(--rule); }
.news-links a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

.contact-band { color: #fbf8ed; background: var(--forest); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4.5rem; padding-block: clamp(3rem, 7vw, 6.4rem); }
.contact-band .eyebrow { color: #d6dec7; }
.contact-inner p:not(.eyebrow) { color: #e3e8de; margin-top: 0.75rem; }
.contact-details { display: grid; font-style: normal; }
.contact-details a { display: grid; gap: 0.12rem; padding: 0.55rem 0; border-top: 1px solid #74877a; }
.contact-details a:last-child { border-bottom: 1px solid #74877a; }
.contact-details a > span { color: #dce4d7; }
.contact-details strong { max-width: 100%; font-size: clamp(1rem, 1.45vw, 1.25rem); font-weight: 650; overflow-wrap: anywhere; }
.contact-details a:hover strong { text-decoration: underline; text-underline-offset: 0.22em; }
.contact-details a:focus-visible { outline-color: white; }
.site-footer { background: var(--paper); border-top: 1px solid var(--rule); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem 2rem; padding-block: 1.35rem; font-size: 0.875rem; color: var(--muted); }
.footer-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 1.5rem; }
.footer-identity .brand img { width: 9rem; }
.footer-contact { display: grid; gap: 0.35rem; font-style: normal; }
.footer-contact a { display: flex; align-items: baseline; gap: 0.65rem; width: fit-content; max-width: 100%; }
.footer-contact-label { flex: none; font-weight: 650; color: var(--forest); }
.footer-identity > a:not(.brand):hover, .footer-contact a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.office-address { display: inline-flex; align-items: center; gap: 0.4rem; min-width: 0; }
.office-map-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  inline-size: 1.55rem;
  block-size: 1.55rem;
  border: 1px solid #b9c5b7;
  border-radius: 50%;
  background: #edf2e9;
  color: var(--forest);
}
.office-map-icon::before {
  content: "";
  inline-size: 0.73rem;
  block-size: 0.73rem;
  margin-block-end: 0.13rem;
  border: 0.18rem solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
a:hover .office-map-icon { background: #dfe8dc; }

.case-page { background: var(--paper); }
.case-masthead { padding-top: clamp(2.4rem, 5vw, 5rem); padding-bottom: 1.75rem; }
.case-back { display: inline-block; margin-bottom: 1.3rem; border-bottom: 1px solid #9eaa9c; color: var(--forest); font-size: 0.925rem; }
.case-masthead h1 { margin-block: 0.35rem 0.75rem; font-size: clamp(2.95rem, 6.4vw, 6rem); }
.case-intro { max-width: 40rem; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.case-feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 3rem); align-items: start; }
.case-image { display: grid; place-items: center; background: #e8e6de; }
.case-image img { width: 100%; height: auto; }
.case-info { padding-block: 0.6rem 1.1rem; }
.case-info h2, .case-next h2 { margin-bottom: 0.85rem; font-size: clamp(1.65rem, 2.6vw, 2.5rem); }
.case-specs > div { display: grid; grid-template-columns: minmax(5.6rem, 0.65fr) minmax(0, 1.35fr); padding-block: 0.46rem; border-top: 1px solid var(--rule); column-gap: 0.5rem; }
.case-specs > div:last-child { border-bottom: 1px solid var(--rule); }
.case-specs dt { color: var(--muted); }
.case-specs dd a, .case-source { text-decoration: underline; text-underline-offset: 0.23em; }
.case-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.15rem; }
.case-source { display: inline-block; margin-top: 0.85rem; color: var(--muted); font-size: 0.875rem; }
.case-next { margin-block: clamp(2.35rem, 5.75vw, 5.25rem); padding-block: 1.45rem; border-block: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.85rem 2rem; }
.case-next h2 { margin: 0.4rem 0 0; }

.page-intro { padding-block: clamp(2.4rem, 5.8vw, 5.25rem) clamp(1.9rem, 3vw, 3rem); }
.page-intro h1 { margin-block: 0.25rem 0.8rem; font-size: clamp(2.65rem, 5.8vw, 5rem); }
.page-intro > p { max-width: 42rem; color: var(--muted); }
.page-section { padding-block: clamp(2rem, 4.6vw, 4.5rem); }
.page-section .section-heading:last-child { margin-bottom: 0; }
.page-section .service-grid { row-gap: 1.7rem; }
.about-copy h2 { margin-bottom: 1.2rem; }
.home-project-actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1.25rem; align-items: center; margin-top: 1.9rem; }
.home-news { padding-block: clamp(2.3rem, 5.2vw, 4.6rem); }
[data-news-status] { color: var(--muted); font-size: 0.875rem; margin-top: 0.48rem; }
[data-news-items] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem clamp(1rem, 3vw, 2.5rem); }
.news-story { min-width: 0; padding-block: 1.05rem 0.8rem; border-top: 1px solid #b4beb1; }
.news-story h3 { margin-top: 0.5rem; font-size: clamp(1.23rem, 2vw, 1.65rem); line-height: 1.45; }
.news-story a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.news-meta, .news-summary { color: var(--muted); font-size: 0.875rem; }
.news-meta time { font-variant-numeric: tabular-nums; }
.news-summary { margin-top: 0.55rem; }
.news-feed { max-width: 64rem; }
.news-feed > h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.news-feed [data-news-items] { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 1rem; }
.news-feed > p:last-child { margin-top: 1.4rem; }
.portfolio-years { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.portfolio-years a { border: 1px solid #a5b2a3; padding: 0.4rem 0.9rem; color: var(--forest); }
.portfolio-years a:hover { background: var(--soft-olive); }
.portfolio-year { padding-block: clamp(1.5rem, 3vw, 2.6rem); border-top: 1px solid var(--rule); }
.portfolio-year h2 { margin-bottom: 1rem; font-size: clamp(1.8rem, 3.5vw, 3.05rem); }

@media (max-width: 1180px) {
  .header-inner { align-items: start; flex-direction: column; gap: 0.7rem; padding-block: 0.85rem 0.7rem; }
  .site-nav { flex-wrap: wrap; gap: 0.25rem 1.15rem; }
  .site-nav a { padding-block: 0.26rem; }
  .site-nav .nav-contact { padding: 0.26rem 0; border: 0; }
  .site-nav .nav-contact:hover { background: none; color: var(--forest); text-decoration: underline; }
  .site-nav .nav-employee { border-inline-start: 0; padding-inline-start: 0; }
}

@media (max-width: 780px) {
  .site-header { position: static; }
  .has-navigation .header-inner { min-height: 4.5rem; flex-direction: row; align-items: center; }
  .has-navigation .menu-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }
  .has-navigation .site-nav { display: none; position: absolute; inset: 100% 0 auto; padding: 0.45rem 6vw 0.85rem; background: var(--white); border-bottom: 1px solid var(--rule); }
  .has-navigation .site-header { position: relative; z-index: 5; }
  .has-navigation .site-header[data-menu-open] .site-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .has-navigation .site-nav a { display: flex; align-items: center; min-height: 2.75rem; padding-inline: 0.35rem; }
  .site-nav :is(.nav-social, .nav-line) img { width: 40px; height: 40px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.85rem; }
  .hero-media { height: clamp(16rem, 64vw, 28rem); }
  .hero h1 { font-size: clamp(3.2rem, 9.5vw, 5.1rem); }
  .section-heading { display: grid; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-inner, .news-inner, .contact-inner, .case-feature { grid-template-columns: minmax(0, 1fr); }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
  [data-news-items] { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@media (max-width: 480px) {
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .about-facts { gap: 0.6rem 1.9rem; }
  .has-navigation .site-nav { gap: 0.25rem 0.55rem; }
  .site-nav :is(.nav-social, .nav-line) img { width: 32px; height: 32px; }
  .site-nav .nav-line { gap: 0.45rem; white-space: normal; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

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