:root {
  --ink: #202824;
  --muted: #545e56;
  --paper: #f8f5ee;
  --panel: #fffcf6;
  --line: #e1dbcd;
  --green: #172923;
  --gold: #dcbc76;
  --gold-dark: #71541f;
  --header-h: 78px;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.75 var(--sans); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid #ad8434; outline-offset: 4px; }
p, dd { margin: 0; }
p + p { margin-top: 1em; }
h1, h2, h3 { margin: 0; }
.shell { max-width: 1330px; width: calc(100% - 128px); margin-inline: auto; }
.skip { z-index: 10; position: fixed; top: -100px; left: 8px; background: white; padding: 10px 18px; }
.skip:focus { top: 6px; }
.site-header { position: sticky; top: 0; z-index: 5; height: var(--header-h); color: white; background: #131b18; border-bottom: 1px solid #ffffff24; }
.header-inner { max-width: 1570px; height: 100%; margin-inline: auto; padding-inline: 5%; display: flex; gap: 48px; align-items: stretch; }
.brand { display: flex; align-items: center; align-self: center; flex: none; }
.brand-filter { position: absolute; inset: 0 auto auto 0; pointer-events: none; }
.brand-logo { position: relative; height: 52px; aspect-ratio: 209 / 79; }
.brand-logo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.brand-emblem { clip-path: inset(22% 71.5% 19% 6%); }
.brand-lettering { clip-path: inset(12% 4.5% 14% 32%); filter: url("#brand-lettering-alpha"); }
.main-nav { display: flex; justify-content: flex-end; min-width: 0; margin-left: auto; }
.main-nav a { padding: 0 clamp(14px, 2vw, 36px); display: grid; align-items: center; color: #e8e6df; white-space: nowrap; position: relative; text-decoration: none; font-size: 15px; letter-spacing: .06em; }
.main-nav a[aria-current], .main-nav a:hover { color: #ffe1a3; background: #ffffff08; }
.main-nav a[aria-current]::after { content: ""; height: 3px; background: var(--gold); position: absolute; inset: auto 16px 0; }
.main-nav a:focus-visible { outline-offset: -4px; }
.hero { position: relative; isolation: isolate; color: white; background: #22332b; overflow: hidden; }
.hero-image { position: absolute; inset: 0 0 0 35%; z-index: -2; background: url("building-perspective.jpg") center 10% / cover no-repeat; mask-image: linear-gradient(90deg, transparent, #000 21%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#182a23 0%,#182a23 28%,#182a23e8 42%,#1728204d 63%,#1728200a 100%),linear-gradient(0deg,#0005,transparent 26%); }
.hero-layout { min-height: 475px; padding-block: 56px 98px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hero-inner .hero-layout { min-height: 298px; padding-block: 43px 83px; }
.hero-inner .hero-image { background-position: center 11%; }
.breadcrumb { margin-bottom: 21px; color: #e4d2a8; font-size: 13px; letter-spacing: .10em; }
.breadcrumb [aria-hidden] { opacity: .7; margin-inline: 6px; }
.hero h1 { font-family: var(--serif); font-size: clamp(30px, 4.1vw, 52px); line-height: 1.16; letter-spacing: .035em; }
.hero-sub { font-size: clamp(15px, 1.7vw, 19px); margin-top: 16px; color: #f0ece4; letter-spacing: .11em; }
.hero-actions { margin-top: 27px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.gold-btn, .light-btn, .outline { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 17px; min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 650; }
.gold-btn { color: #24231d; background: var(--gold); border: 1px solid var(--gold); }
.gold-btn:hover { background: #f8dd9f; }
.light-btn { color: #fff8e8; background: #19262055; border: 1px solid #e9e0c990; }
.light-btn:hover { background: #f0e3bc2b; }
.location { font-size: 12px; text-align: right; color: #fff3db; padding-bottom: 2px; letter-spacing: .13em; white-space: nowrap; text-shadow: 0 1px 3px #102019, 0 1px 12px #102019; }
.image-credit { position: absolute; right: max(5%, calc((100vw - 1330px)/2)); bottom: 62px; font-size: 11px; color: white; background: #111a; padding: 1px 7px; }
.main-shell { position: relative; }
.summary { display: grid; grid-template-columns: 1fr 1fr 1.8fr; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid #b3924e; margin: -43px 0 0; padding: 21px 17px; box-shadow: 0 12px 23px #55401808; }
.summary > div { padding: 0 24px; }
.summary > div + div { border-left: 1px solid var(--line); }
.summary dt { font-size: 12px; color: var(--muted); letter-spacing: .13em; margin-bottom: 3px; }
.summary dd { color: var(--green); font-weight: 650; font-size: 20px; letter-spacing: .04em; }
.summary small { font: inherit; font-size: 14px; }
.dot { display: inline-block; vertical-align: .16em; height: 8px; width: 8px; border-radius: 50%; margin-right: 9px; background: #659257; outline: 3px solid #dfe9d8; }
.map-link { text-decoration: none; }
.map-link:hover { text-decoration: underline; }
.map-link span { color: var(--gold-dark); font-size: .85em; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(195px, .31fr); align-items: start; gap: clamp(28px, 5.3vw, 84px); padding: 49px 0 64px; }
.section + .section { margin-top: 42px; }
.section h2 { font-family: var(--serif); color: var(--green); font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 19px; line-height: 1.35; display: flex; align-items: center; gap: 14px; }
.section h2::before { content: ""; width: 3px; height: .8em; background: #a8823b; flex-shrink: 0; }
.lead { font-size: 17px; line-height: 1.9; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 23px 0 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.facts div { padding: 12px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); background: #fffcf4; }
.facts div:last-child:nth-child(odd) { grid-column: 1/-1; }
.facts dt { color: var(--gold-dark); font-size: 13px; font-weight: 700; }
.facts dd { margin-top: 2px; overflow-wrap: anywhere; }
.rail { display: grid; gap: 15px; }
.rail-box { border: 1px solid var(--line); padding: 19px 20px; background: #f0ece2; }
.rail h2 { color: var(--green); font-size: 16px; margin-bottom: 6px; }
.rail p { color: var(--muted); font-size: 14px; }
.text-link { font-size: 14px; color: var(--gold-dark); font-weight: 650; overflow-wrap: anywhere; }
.rail .text-link { display: block; margin-top: 8px; }
.figure-block { margin-top: 23px; border: 1px solid var(--line); padding: 16px 19px; background: var(--panel); }
.figure-block h3, .public-grid h3 { font-size: 17px; color: var(--green); }
.figure-list { margin: 7px 0; padding-left: 22px; }
.notice-list, .timeline { list-style: none; padding: 0; margin: 0; }
.notice-list li { display: flex; gap: 19px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.notice-list li:first-child { border-top: 1px solid var(--line); }
time { font-size: 14px; color: var(--gold-dark); font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 14px; }
.link-list { display: grid; margin-top: 17px; gap: 10px; }
.link-list > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); background: var(--panel); }
.link-list small { display: block; margin-bottom: 2px; color: var(--muted); }
.outline { border: 1px solid #bfa670; color: var(--gold-dark); white-space: nowrap; }
.outline:hover { background: #f0e8d8; }
.public-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.public-grid div { padding: 16px; border-top: 2px solid #b3924e; background: #f0ece2; }
.public-grid p { font-size: 14px; margin-top: 6px; }
.table-wrap { overflow: auto; margin-top: 16px; border: 1px solid var(--line); }
table { width: 100%; min-width: 560px; border-collapse: collapse; text-align: left; background: var(--panel); }
caption { text-align: left; font-size: 14px; font-weight: 700; padding: 10px 12px; color: var(--green); }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
thead th { background: #244135; color: white; white-space: nowrap; }
tbody th { font-weight: 650; min-width: 145px; }
tbody td:nth-child(2), tbody td:nth-child(3):not(:last-child) { font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:nth-child(even), .total { background: #f2eee4; }
.total { font-weight: 700; }
.note { color: var(--muted); background: #f0ece2; border-left: 3px solid #b3924e; padding: 10px 13px; font-size: 14px; margin-top: 14px; }
.timeline { padding-left: 14px; border-left: 1px solid #c5b380; }
.timeline li { display: grid; grid-template-columns: 111px minmax(0, 1fr); gap: 13px; align-items: baseline; position: relative; padding: 9px 0; }
.timeline li::before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #a8823b; top: 19px; left: -18px; }
.timeline .text-link { display: block; }
.bottom-nav { display: flex; justify-content: space-between; gap: 16px; padding-top: 19px; border-top: 1px solid var(--line); margin-top: 40px; }
.bottom-nav a { color: var(--gold-dark); font-weight: 650; text-decoration: none; }
.bottom-nav a:hover { text-decoration: underline; }
footer { color: #e9e5db; background: #131b18; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 92px; padding: 17px 0; }
.footer-inner img { width: min(258px, 100%); height: auto; }
.footer-inner .text-link { color: var(--gold); }
.to-top { position: fixed; z-index: 3; right: 18px; bottom: max(17px,env(safe-area-inset-bottom)); display: grid; width: 44px; height: 44px; place-items: center; text-decoration: none; border: 1px solid #d5be87; color: #ffe2a7; background: #182a23; font-size: 21px; }
@media (max-width: 1050px) {
  .shell { width: calc(100% - 80px); }
  .header-inner { padding-inline: 4%; gap: 24px; }
  .main-nav a { padding: 0 15px; }
  .summary > div { padding: 0 16px; }
  .summary dd { font-size: 17px; }
}
@media (max-width: 720px) {
  :root { --header-h: 99px; }
  .shell { width: calc(100% - 36px); }
  .header-inner { flex-direction: column; gap: 0; padding: 0; }
  .brand { align-self: flex-start; padding: 9px 0 6px 18px; }
  .brand-logo { height: 35px; }
  .main-nav { margin-left: 0; padding: 0 7px; flex: 1; justify-content: flex-start; border-top: 1px solid #ffffff19; overflow-x: auto; scrollbar-width: thin; }
  .main-nav a { flex: 1 0 auto; justify-content: center; min-width: 49px; min-height: 44px; padding: 0 6px; font-size: 13px; }
  .main-nav a[aria-current]::after { inset-inline: 10px; }
  .hero-image { inset-inline-start: 13%; background-position: left 10%; }
  .hero-inner .hero-image { background-position: left 12%; }
  .hero::before { background: linear-gradient(90deg,#182a23 7%,#182a23e8 23%,#182a239c 52%,#182a231c 100%),linear-gradient(0deg,#0005,transparent 52%); }
  .hero-layout { min-height: 378px; padding: 43px 0 82px; }
  .hero-inner .hero-layout { min-height: 250px; padding: 36px 0 66px; }
  .hero h1 { font-size: clamp(27px, 6.6vw, 42px); }
  .breadcrumb { margin-bottom: 15px; }
  .hero-sub { letter-spacing: .07em; }
  .hero-actions { margin-top: 23px; }
  .location { display: none; }
  .image-credit { bottom: 46px; }
  .summary { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 10px 0 0; margin-top: -32px; }
  .summary > div { padding: 0 13px 7px; }
  .summary > div:last-child { grid-column: 1 / -1; padding-top: 7px; border: 0; border-top: 1px solid var(--line); }
  .summary dd { font-size: 16px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); padding: 34px 0 50px; }
  .public-grid { grid-template-columns: 1fr; }
  .section + .section { margin-top: 34px; }
  .notice-list li { gap: 12px; }
}
@media (max-width: 390px) {
  .link-list > div { align-items: flex-start; flex-direction: column; }
  .facts { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 94px minmax(0, 1fr); gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  list-style: none;
  padding: 0;
  margin: 13px 0 1px;
}
.project-gallery figure {
  height: 100%;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}
.figure-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #f2eee5;
  cursor: zoom-in;
  color: #fff4d9;
}
.figure-open img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.figure-plus {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #ffe8b3;
  background: #142820ee;
  font: 21px/1 var(--sans);
}
.figure-open:hover .figure-plus, .figure-open:focus-visible .figure-plus {
  color: #172923;
  background: var(--gold);
}
.project-gallery figcaption {
  padding: 8px 9px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}
.project-model .project-gallery { grid-template-columns: minmax(0, 420px); }
.project-model .figure-open img { aspect-ratio: 16 / 10; }
.gallery-credit { margin-bottom: 7px; }
.meeting-photos { margin: 7px 0; }
.meeting-photos summary {
  width: fit-content;
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  padding: 4px 0;
}
.meeting-photos .project-gallery { margin-bottom: 14px; }
body:has(.image-viewer[open]) { overflow: hidden; }
.image-viewer {
  width: min(1150px, calc(100% - 36px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  padding: 0;
  border: 1px solid #dcbc7660;
  color: #f8efdd;
  background: #16221d;
}
.image-viewer::backdrop { background: #080f0bdf; }
.viewer-frame { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100dvh - 38px); }
.viewer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-bottom: 1px solid #fff4da24;
}
.viewer-paging { display: flex; align-items: center; gap: 7px; margin-right: auto; }
.viewer-count { min-width: 3ch; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.viewer-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 4px 10px;
  border: 1px solid #dcbc7659;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.viewer-controls button:hover:not(:disabled), .viewer-controls button[aria-pressed="true"] { background: #dcbc7630; }
.viewer-controls button:disabled { opacity: .5; cursor: default; }
.viewer-paging button, .viewer-close { font-size: 24px !important; line-height: 1; }
.viewer-controls .viewer-zoom { font-size: 13px; }
.viewer-scroll {
  display: grid;
  place-items: center;
  min-height: 160px;
  height: min(73dvh, 780px);
  padding: 9px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #101712;
}
.viewer-image { display: block; width: auto; height: auto; max-width: 100%; max-height: min(calc(73dvh - 20px), 760px); }
.viewer-image:not([src]), .viewer-status:empty { display: none; }
.viewer-status { padding: 20px; text-align: center; }
.viewer-scroll.is-full-size { display: block; }
.viewer-scroll.is-full-size .viewer-image { max-width: none; max-height: none; margin-inline: auto; }
.viewer-caption { min-height: 42px; padding: 8px 13px; color: #f8efdd; font-size: 14px; text-align: center; }
@media (max-width: 720px) {
  .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .figure-block:has(.project-gallery) { padding: 13px 10px; }
  .figure-plus { right: 4px; bottom: 4px; width: 26px; height: 26px; font-size: 17px; }
  .meeting-photos .project-gallery { gap: 7px; }
  .image-viewer { width: calc(100% - 18px); max-height: calc(100dvh - 18px); }
  .viewer-frame { max-height: calc(100dvh - 20px); }
}
@media (max-height: 540px) {
  .viewer-scroll { height: 63dvh; min-height: 90px; }
  .viewer-image { max-height: calc(63dvh - 20px); }
}


.construction-date { margin-bottom: 16px; color: var(--muted); font-size: 0.875rem; }
.construction-date time { margin-left: 8px; }
.construction-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.construction-gallery .figure-open img { aspect-ratio: 4 / 3; object-fit: cover; }
.construction-gallery figcaption { padding: 10px 12px; font-size: 0.875rem; }
@media (max-width: 600px) {
  .construction-gallery { grid-template-columns: minmax(0, 1fr); }
}
