:root {
  --bg: #ffffff;
  --bg-soft: #f6fbfb;
  --surface: #ffffff;
  --text: #10202d;
  --muted: #526272;
  --line: #d7e3e5;
  --line-strong: #9bb9bd;
  --accent: #006a6a;
  --accent-dark: #004d4d;
  --accent-soft: #e1f3f2;
  --warm: #b36b21;
  --shadow: 0 20px 50px rgba(10, 43, 53, 0.12);
  --max: 1120px;
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  white-space: nowrap;
}

.nav a {
  position: relative;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 150ms ease, transform 150ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.section-grid,
.overview-band,
.work-section,
.category-grid,
.project-list-section,
.split-section,
.page-hero,
.content-shell,
.policy-shell,
.contact-layout {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(50px, 7vw, 92px) 0;
}

.hero-copy h1,
.page-hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6.2vw, 82px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p,
.page-hero p {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 106, 106, 0.18);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: #fff;
  color: var(--accent-dark);
}

.button.secondary:hover {
  background: var(--accent-soft);
}

.hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #f4fafa);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.overview-band {
  padding: clamp(52px, 6vw, 78px) 0;
  border-top: 1px solid var(--line);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(170px, 0.36fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
}

.section-label {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-header h2,
.split-section h2,
.category-card h2,
.project-row h2,
.content-block h2,
.policy-shell h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.summary-card,
.work-card,
.category-card,
.content-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.summary-card {
  padding: 26px;
}

.summary-card h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.summary-card p,
.work-card p,
.category-card p,
.project-copy p,
.split-section p,
.content-block p,
.policy-shell p,
.policy-shell li,
.check-list li,
.details-list dd {
  color: var(--muted);
  font-size: 16px;
}

.line-icon,
.building-icon {
  display: inline-grid;
  place-items: center;
  color: var(--accent-dark);
}

.line-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.line-icon svg {
  width: 25px;
  height: 25px;
}

.line-icon path,
.building-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(140px, 0.36fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 66px);
  padding: clamp(52px, 6vw, 78px) 0;
  border-top: 1px solid var(--line);
}

.split-section.tinted {
  position: relative;
}

.split-section.tinted::before {
  position: absolute;
  z-index: -1;
  inset: 0 calc((100vw - min(var(--max), calc(100vw - 40px))) / -2);
  background: var(--bg-soft);
  content: "";
}

.section-art {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-right: 1px solid var(--line-strong);
}

.building-icon {
  width: 76px;
  height: 76px;
}

.building-icon svg {
  width: 76px;
  height: 76px;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.button-row.compact {
  margin-top: 28px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.contact-actions .button {
  min-width: 132px;
}

.attention p {
  max-width: 680px;
}

.work-section {
  padding: clamp(52px, 6vw, 78px) 0;
  border-top: 1px solid var(--line);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  display: flex;
  flex-direction: column;
  min-height: 276px;
  padding: 24px;
}

.work-card h3 {
  margin: 8px 0 10px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.22;
}

.work-card p {
  margin: 0;
}

.work-meta {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-card a {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.work-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.42fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}

.work-hero h1 {
  max-width: 680px;
}

.work-hero-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.work-hero-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.work-hero-panel div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.work-hero-panel dt {
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
}

.work-hero-panel dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: clamp(44px, 6vw, 72px);
}

.category-card {
  min-height: 270px;
  padding: clamp(26px, 4vw, 40px);
}

.project-list-section {
  padding-bottom: clamp(58px, 7vw, 90px);
}

.project-list {
  display: grid;
  gap: 16px;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.project-row h2 {
  margin-bottom: 8px;
}

.project-row p {
  margin: 0;
}

.project-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.project-row a:hover {
  background: var(--accent-soft);
}

.compact-list .project-row {
  padding: 20px 24px;
}

.page-hero {
  padding: clamp(52px, 7vw, 92px) 0 clamp(34px, 5vw, 58px);
}

.page-hero h1 {
  max-width: 860px;
}

.page-hero .updated {
  margin-top: 18px;
  color: var(--warm);
  font-size: 15px;
  font-weight: 750;
}

.content-shell,
.policy-shell,
.contact-layout {
  display: grid;
  gap: 18px;
  padding-bottom: clamp(58px, 7vw, 90px);
}

.content-block {
  padding: clamp(24px, 4vw, 38px);
}

.details-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.details-list div {
  display: grid;
  grid-template-columns: minmax(190px, 0.3fr) minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.details-list dt {
  color: var(--text);
  font-weight: 800;
}

.details-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.details-list a,
.content-block a {
  overflow-wrap: anywhere;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
  font-weight: 900;
  content: "✓";
}

.policy-shell {
  max-width: 900px;
}

.policy-shell article {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.policy-shell ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.contact-layout {
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 1fr);
  align-items: start;
}

.attention {
  border-color: #dfc49e;
  background: #fffaf2;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--text);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .work-hero,
  .summary-grid,
  .work-grid,
  .category-grid,
  .split-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-art {
    justify-content: flex-start;
    border-right: 0;
  }
}

@media (max-width: 620px) {
  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small {
    font-size: 12px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .details-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .project-row {
    grid-template-columns: 1fr;
  }

  .project-row a {
    justify-self: flex-start;
  }

  .contact-actions .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
