:root {
  --bg: #f4f1eb;
  --ink: #1f211f;
  --muted: #6b6b66;
  --line: rgba(31, 33, 31, 0.14);
  --dark: #141614;
  --dark-soft: #20231f;
  --white: #ffffff;
  --accent: #a6855a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

.hero,
.section,
.site-footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.hero,
.project-card,
.legacy-progress-image {
  user-select: none;
  -webkit-touch-callout: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 6vw;
  background: linear-gradient(180deg, rgba(51, 51, 51, 0.72), rgba(51, 51, 51, 0));
  transition: transform 0.36s ease;
  will-change: transform;
}

.site-header.is-hidden {
  transform: translateY(-130%);
}

.logo,
.site-nav,
.menu-toggle {
  transform: translateY(30px);
}

.logo img {
  width: auto;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.35));
}

.site-nav {
  display: flex;
  gap: 24.96px;
  align-items: center;
}

.site-nav a {
  position: relative;
  display: inline-block;
  color: var(--white);
  font-size: 18.72px;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.site-nav a[data-label]::after {
  content: attr(data-label);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  letter-spacing: 0.08em;
  opacity: 0;
  white-space: nowrap;
}

.site-nav a[data-label]:hover {
  color: transparent;
}

.site-nav a[data-label]:hover::after {
  opacity: 1;
}

.site-nav a:not([data-label]):hover,
.text-link:hover {
  color: var(--accent);
}

.nav-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background-color 0.2s ease;
}

.nav-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(1.45) contrast(1.35) drop-shadow(0 0 2px rgba(255, 255, 255, 0.45));
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-icon[aria-label="Facebook"] {
  transform: translateY(3px);
}

.nav-icon[href*="FileStation"] img {
  width: 22px;
  height: 22px;
}

.nav-icon:hover img {
  opacity: 0.78;
  filter: brightness(1.9) contrast(1.55) drop-shadow(0 0 4px rgba(255, 255, 255, 0.75));
  transform: translateY(-1px);
}

.nav-icon[aria-label="Facebook"]:hover img,
.nav-icon[href*="FileStation"]:hover img {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(54%) sepia(28%) saturate(1348%) hue-rotate(295deg) brightness(88%) contrast(94%) drop-shadow(0 0 3px rgba(196, 73, 125, 0.5));
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 6px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 150px 6vw 92px;
  background-size: cover;
  background-position: center;
}

.hero-home {
  background-image: url("cover/01.jpg");
  overflow: hidden;
}

.home-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 0.9s ease-in-out;
}

.home-hero-slide-current {
  background-image: url("cover/01.jpg");
}

.home-hero-slide-next {
  opacity: 0;
}

.home-hero-slide-next.is-visible {
  opacity: 1;
}

.hero-about {
  background-image: url("architect.png");
}

.hero-career {
  overflow: hidden;
  background-image: none;
  background-color: #333333;
}

.hero-career::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: url("bg4.jpg");
  background-size: cover;
  background-position: center;
  animation: careerHeroZoomIn 6s ease-out both;
}

@keyframes careerHeroZoomIn {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.2);
  }
}

.hero-contact {
  overflow: hidden;
  background-image: none;
  background-color: #333333;
}

.hero-contact::before {
  content: "";
  position: absolute;
  inset: -25%;
  background-image: url("image5.jpg");
  background-size: cover;
  background-position: center;
  animation: contactHeroZoomIn 6s ease-out both;
}

@keyframes contactHeroZoomIn {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(0.8);
  }
}

.hero-projects {
  overflow: hidden;
  background-image: none;
  background-color: #333333;
}

.hero-projects::before {
  content: "";
  position: absolute;
  inset: -13%;
  background-image: url("image3.jpg");
  background-size: cover;
  background-position: center calc(50% - 50px);
  animation: projectsHeroZoomIn 6s ease-out both;
}

@keyframes projectsHeroZoomIn {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(0.8);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(23px, 4.2vw, 47px);
  line-height: 1.12;
  letter-spacing: 0.04em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(17px, 2.4vw, 29px);
  line-height: 1.2;
  letter-spacing: 0.04em;
}

h3 {
  font-size: 20px;
  letter-spacing: 0.06em;
}

.hero p,
.section-heading p,
.featured-work p,
.page-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.section-light .section-heading p,
.page-copy p {
  color: var(--muted);
}

.mobile-title {
  display: none;
}

.mobile-break {
  display: none;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 12px 20px;
  border: 1px solid var(--white);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.button-primary {
  background: var(--white);
  color: var(--ink);
}

.button-secondary {
  color: var(--white);
}

.section {
  padding: 96px 6vw;
}

.section-light {
  background: var(--bg);
}

.practice-section {
  min-height: 100vh;
  display: grid;
  align-content: center;
}

.profile-section {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.principal-section {
  min-height: 100vh;
  display: grid;
  align-items: center;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.28)), url("bg3.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.principal-section .page-copy {
  max-width: 760px;
  margin-right: auto;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
}

.about-page {
  --about-footer-height: 80px;
}

.about-page .principal-section {
  min-height: calc(100vh - var(--about-footer-height));
}

.about-page .site-footer {
  min-height: var(--about-footer-height);
  align-items: center;
  scroll-snap-align: none;
}

.principal-section .page-copy > div:last-child {
  padding-top: 48px;
}

.principal-section .page-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.principal-name {
  margin-bottom: 16px;
  color: var(--white) !important;
  font-size: 18px;
}

.principal-section h3 {
  margin: 24px 0 10px;
  color: var(--white);
  font-size: 17px;
  font-weight: 500;
}

.principal-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.72;
}

.principal-education {
  margin-top: 1.72em;
}

.services-section {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.services-section .section-heading p {
  color: var(--muted);
}

.services-section .section-heading {
  margin-bottom: 28px;
}

.home-page {
  --home-footer-height: 80px;
}

.home-page .services-section {
  min-height: calc(100vh - var(--home-footer-height));
  padding-top: 48px;
  padding-bottom: 48px;
}

.home-page .services-section .section-heading {
  margin-bottom: 20px;
}

.home-page .services-section .section-heading p {
  margin-bottom: 10px;
}

.home-page .services-section .section-heading p:not(.eyebrow) {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}

.home-page .services-list {
  width: 60%;
  margin: 0 auto;
  gap: 10px;
}

.home-page .services-list article {
  padding: 16px;
  gap: 10px;
}

.home-page .service-icon {
  width: 68px;
  height: 68px;
}

.home-page .site-footer {
  min-height: var(--home-footer-height);
  align-items: center;
  scroll-snap-align: none;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: transparent;
}

.services-list article {
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  background: #d2d2cc;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.services-list article span {
  white-space: nowrap;
}

.service-icon {
  width: 93px;
  height: 93px;
  color: #6f6f69;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.philosophy-section {
  min-height: 100vh;
  display: grid;
  align-items: center;
  background: #333333;
}

.philosophy-section .info-grid article {
  background: #333333;
}

.philosophy-section .info-grid article:nth-child(2) p {
  text-align: justify;
  text-justify: inter-ideograph;
}

.environment-section {
  min-height: 100vh;
  display: grid;
  align-items: center;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.22)), url("career-environment.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.environment-section .page-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.environment-section .page-copy > div:last-child {
  padding-top: 48px;
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.selected-works-section {
  background: #333333;
}

.openings-section {
  background: #333333;
}

.career-page {
  --career-footer-height: 80px;
}

.career-page .openings-section {
  min-height: calc(100vh - var(--career-footer-height));
  display: grid;
  align-content: center;
}

.career-page .site-footer {
  min-height: var(--career-footer-height);
  align-items: center;
  scroll-snap-align: none;
}

.openings-section .career-grid article {
  background: #333333;
}

.career-link {
  margin-top: 24px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 1px;
  background: var(--line);
}

.contact-section,
.contact-section .contact-map-card,
.contact-section .contact-info-card {
  background: #333333;
  color: var(--white);
}

.contact-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.contact-page {
  --contact-footer-height: 80px;
}

.contact-page .contact-section {
  min-height: calc(100vh - var(--contact-footer-height));
}

.contact-page .site-footer {
  min-height: var(--contact-footer-height);
  align-items: center;
  scroll-snap-align: none;
}

.contact-section .contact-layout {
  width: 100%;
}

.contact-map-card,
.contact-info-card {
  padding: 34px;
  background: var(--bg);
}

.contact-map {
  width: 100%;
  height: 420px;
  margin-top: 18px;
  border: 0;
  display: block;
  filter: grayscale(0.2) contrast(0.95);
}

.map-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.map-link:hover {
  color: var(--accent);
}

.contact-info-card p,
.contact-info-card a {
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}

.contact-section .map-link,
.contact-section .contact-info-card p,
.contact-section .contact-info-card a {
  color: var(--white);
}

.contact-info-card p {
  margin-bottom: 14px;
}

.contact-info-card span {
  display: inline-block;
  min-width: 54px;
}

.contact-address {
  display: flex;
  align-items: flex-start;
}

.contact-address-text {
  display: inline-block;
  min-width: 0;
}

@media (min-width: 921px) {
  .contact-map-card {
    transform: translateY(-50px);
  }
}

.section-heading {
  max-width: 880px;
  margin-bottom: 48px;
}

.service-grid,
.project-grid,
.info-grid,
.career-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.service-grid article,
.info-grid article,
.career-grid article {
  min-height: 240px;
  padding: 24px;
  background: var(--bg);
}

.section-dark .info-grid,
.section-dark .career-grid {
  background: rgba(255, 255, 255, 0.12);
}

.section-dark .info-grid article,
.section-dark .career-grid article {
  background: var(--dark-soft);
}

.section-dark.philosophy-section,
.section-dark.philosophy-section .info-grid,
.section-dark.philosophy-section .info-grid article {
  background: #333333;
}

.service-grid p,
.info-grid p,
.career-grid p,
.project-card p {
  color: var(--muted);
}

.project-card h3,
.project-card p {
  color: var(--white);
}

.project-card h3 {
  font-size: 80%;
}

.project-card p {
  font-size: 70%;
  line-height: 1.19;
}

.section-dark .info-grid p,
.section-dark .career-grid p {
  color: rgba(255, 255, 255, 0.7);
}

.featured-work {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
}

.work-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.work-preview img:first-child {
  grid-row: span 2;
  height: 100%;
}

.work-preview img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: saturate(0.9);
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.project-grid {
  grid-template-columns: repeat(4, minmax(0, 0.9fr));
  background: transparent;
  gap: 24px;
  justify-content: center;
}

.projects-page {
  background: #333333;
}

.projects-page .section-light {
  background: #333333;
}

.projects-page .project-grid {
  line-height: 0.85;
}

.project-card {
  background: #333333;
}

.project-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.project-card div {
  padding: 14px 0 9px;
}

.legacy-progress {
  min-height: 100vh;
  padding: 132px 6vw 84px;
  background: #333333;
}

.legacy-progress-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.legacy-progress-card {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.legacy-progress-image {
  margin: 0;
}

.legacy-progress-detail {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
}

.legacy-progress-detail p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.72;
}

.legacy-progress-detail .legacy-title {
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
}

.legacy-progress-detail .legacy-green {
  color: var(--accent);
}

.legacy-back {
  margin-top: 24px;
}

.legacy-back a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.legacy-back a:hover {
  color: var(--accent);
}

.page-hero-small {
  min-height: 100vh;
  align-items: start;
}

.page-hero-small .hero__content {
  max-width: 720px;
  margin-top: 34vh;
}

.page-hero-small h1 {
  font-size: clamp(23px, 4.2vw, 47px);
  margin-bottom: 18px;
}

.page-copy {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: start;
}

.page-copy > div:last-child {
  padding-top: 30px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 6vw;
  background: #333333;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

@media (max-width: 920px) {
  html {
    scroll-snap-type: none;
  }

  .hero,
  .section,
  .site-footer {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .site-header {
    padding: 18px 22px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 22px;
    display: none;
    min-width: 220px;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: rgba(13, 15, 13, 0.94);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .desktop-title {
    display: none;
  }

  .mobile-title {
    display: inline;
  }

  .mobile-break {
    display: block;
  }

  .service-grid,
  .project-grid,
  .info-grid,
  .career-grid,
  .contact-layout,
  .featured-work,
  .page-copy {
    grid-template-columns: 1fr;
  }

  .services-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .services-list article {
    padding: 14px;
    gap: 10px;
  }

  .service-icon {
    width: 64px;
    height: 64px;
  }

  .services-list article span {
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  .page-copy > div:last-child {
    padding-top: 0;
  }

  .principal-section .page-copy {
    grid-template-columns: 1fr;
  }

  .principal-section {
    background-position: 55% center;
  }

  .profile-section .page-copy > div:last-child p:nth-child(3) {
    text-align: justify;
    text-justify: inter-ideograph;
  }

  .philosophy-section .info-grid article {
    min-height: 120px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .hero-contact::before {
    background-position: 75% center;
  }

  .hero-projects {
    background-position: center;
  }

  .hero-projects::before {
    background-position: center;
  }

  .principal-section .page-copy > div:last-child {
    padding-top: 0;
  }

  .contact-map {
    height: 320px;
  }

  .work-preview {
    grid-template-columns: 1fr;
  }

  .work-preview img {
    height: 240px;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 8px;
  }

  .legacy-progress {
    padding: 112px 24px 64px;
  }

  .legacy-progress-card,
  .legacy-progress-detail {
    grid-template-columns: 1fr;
  }
}
