@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Manrope:wght@400;500;600&family=Noto+Sans+TC:wght@300;400;500;600&display=swap');

:root {
  --ink: #26312d;
  --sage: #7f8d82;
  --deep: #34443d;
  --sand: #d8c9b5;
  --cream: #f4f0e8;
  --paper: #fbfaf7;
  --line: rgba(38,49,45,.16);
  --serif: 'Cormorant Garamond','Noto Sans TC','Microsoft JhengHei',sans-serif;
  --sans: 'Manrope','Noto Sans TC','Microsoft JhengHei',sans-serif;
  --pad: clamp(24px,6vw,96px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.8;
  font-size: 16px;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,input,select,textarea {
  font: inherit;
}

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

h1,h2,h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.4;
}

h2 {
  letter-spacing: .03em;
}

em {
  color: var(--sand);
  font-style: normal;
}

.site-header {
  height: 92px;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.22);
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: clamp(15px,2vw,34px);
  align-items: center;
}

.main-nav>a {
  font-size: 14px;
  position: relative;
}

.main-nav>a:not(.nav-cta):after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: .3s;
}

.main-nav>a:hover:after,.main-nav>a.active:after {
  width: 100%;
}

.nav-cta {
  border: 1px solid rgba(255,255,255,.7);
  padding: 9px 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: white;
}

.section {
  padding: clamp(80px,10vw,150px) var(--pad);
}

.eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--sage);
  margin-bottom: 22px;
  font-weight: 700;
}

.eyebrow.light {
  color: #eee5d8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  background: var(--deep);
  color: white;
  border: 1px solid var(--deep);
  font-size: 13px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: .3s;
}

.btn:hover {
  background: transparent;
  color: var(--deep);
}

.btn-light {
  background: white;
  color: var(--deep);
  border-color: white;
}

.btn-light:hover {
  background: transparent;
  color: white;
}

.text-link {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .16em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
}

.text-link.light {
  color: white;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 55px;
}

.section-head h2 {
  margin: 0;
}

.section-head>p {
  max-width: 470px;
  color: #67716d;
}

.inner-hero {
  display: flex;
  align-items: end;
  padding: 170px var(--pad) 90px;
  color: white;
  position: relative;
}

.inner-hero:after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: -45px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 55% 45% 60% 40%;
}

.inner-hero>div {
  position: relative;
  z-index: 1;
}

.inner-hero h1 {
  white-space: pre-line;
  margin-bottom: 18px;
}

.inner-hero p {
  max-width: 650px;
}

.cta-band {
  min-height: 440px;
  padding: 80px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: white;
  background: linear-gradient(90deg,rgba(36,47,42,.88),rgba(36,47,42,.42)),url('../images/cta.jpg') center/cover;
}

.cta-band h2 {
  margin-bottom: 15px;
}

.cta-band p {
  max-width: 650px;
}

.site-footer {
  background: #24312c;
  color: #d9dedb;
  padding: 75px var(--pad) 25px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 8vw;
}

.footer-brand img {
  margin-bottom: 20px;
}

.footer-brand p {
  max-width: 420px;
}

.site-footer h3 {
  font-size: 16px;
  color: white;
  margin-bottom: 22px;
}

.site-footer a,.site-footer p {
  display: block;
  font-size: 14px;
  color: #b8c0bc;
  margin: 0 0 10px;
}

.site-footer a:hover {
  color: white;
}

.copyright {
  margin-top: 65px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 11px;
  letter-spacing: .08em;
}

.floating-line {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.case-grid,.service-grid,.news-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 35px;
}

.case-card .media {
  position: relative;
  overflow: hidden;
}

.case-card img {
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: .7s;
}

.case-card:hover img {
  transform: scale(1.035);
}

.case-card .media span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(250,248,243,.9);
  padding: 5px 12px;
  font-size: 11px;
}

.case-card>div:last-child {
  padding: 20px 5px;
}

.case-card small,.news-card small {
  font-size: 11px;
  color: var(--sage);
  letter-spacing: .08em;
}

.case-card h3,.news-card h3 {
  font-size: 22px;
  margin: 7px 0;
}

.case-card p,.news-card p {
  font-size: 14px;
  color: #68716e;
}

.case-card b,.news-card b,.service-card b {
  font: 11px var(--sans);
  letter-spacing: .15em;
}

.service-card {
  background: white;
  box-shadow: 0 15px 50px rgba(40,48,44,.06);
}

.service-card img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

.service-card>div {
  padding: 30px;
}

.service-card span {
  font: 28px var(--serif);
  color: var(--sand);
}

.service-card h3 {
  font-size: 21px;
  margin: 12px 0;
}

.service-card p {
  font-size: 14px;
  color: #68716e;
}

.news-card img {
  aspect-ratio: 3/2;
  object-fit: cover;
}

.news-card>div {
  padding: 22px 5px;
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .8s,transform .8s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.detail-hero,.project-hero {
  position: relative;
  color: white;
}

.detail-hero:after,.project-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,rgba(22,32,28,.75),transparent 65%);
}

.detail-hero img,.project-hero img {
  height: 100%;
  object-fit: cover;
}

.detail-hero>div,.project-hero>div {
  position: absolute;
  z-index: 2;
  left: var(--pad);
  bottom: 70px;
  max-width: 850px;
}

.detail-hero h1,.project-hero h1 {
  margin-bottom: 15px;
}

.detail-hero p {
  font-size: 18px;
  max-width: 700px;
}

.related {
  background: var(--cream);
}

@media(max-width:980px) {
  .main-nav {
    position: fixed;
    display: flex;
    flex-direction: column;
    transition: .45s;
  }

  .main-nav>a {
    font-size: 18px;
  }

  .nav-toggle {
    display: block;
    position: relative;
    width: 42px;
    height: 42px;
  }

  .nav-toggle i {
    display: block;
    width: 25px;
    height: 1px;
    background: white;
    margin: 7px;
  }

  .case-grid,.service-grid,.news-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .footer-main {
    grid-template-columns: 1.6fr 1fr;
  }

  .footer-main>div:last-child {
    grid-column: 1/-1;
  }

  .inner-hero {
    background-attachment: scroll;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .cta-band {
    align-items: start;
    flex-direction: column;
    justify-content: center;
  }
}

@media(max-width:640px) {
  body {
    font-size: 15px;
  }

  .section {
    padding: 75px 22px;
  }

  .inner-hero {
    padding: 135px 22px 65px;
  }

  .case-grid,.service-grid,.news-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-main>div:last-child {
    grid-column: auto;
  }

  .copyright {
    display: block;
  }

  .cta-band {
    padding: 70px 22px;
    min-height: 430px;
  }

  .floating-line {
    right: 15px;
    bottom: 15px;
  }

  .detail-hero,.project-hero {
    height: 620px;
  }

  .detail-hero>div,.project-hero>div {
    left: 22px;
    right: 22px;
    bottom: 50px;
  }
}

/* Refined global scale, typography and navigation behavior */

h2 {
  font-size: clamp(28px,3.1vw,44px);
  line-height: 1.5;
}

.site-header {
  position: fixed;
  transition: background-color .4s,box-shadow .4s,height .4s,backdrop-filter .4s;
}

.site-header.scrolled {
  height: 74px;
  background: rgba(39,53,47,.94);
  box-shadow: 0 10px 35px rgba(18,28,23,.12);
  backdrop-filter: blur(14px);
  border-bottom-color: transparent;
}

.inner-hero {
  min-height: 500px;
  background: linear-gradient(100deg,rgba(24,36,31,.7),rgba(24,36,31,.12)),url('../images/inner-banner.jpg') center/cover no-repeat;
}

.inner-hero h1 {
  font-size: clamp(36px,4.3vw,48px);
  line-height: 1.45;
}

.inner-hero p {
  font-size: 16px;
}

.detail-hero,.project-hero {
  height: min(70vh,680px);
}

.detail-hero h1,.project-hero h1 {
  font-size: clamp(34px,4vw,54px);
}

.cta-band h2 {
  font-size: clamp(28px,3vw,42px);
}

.copyright {
  display: block;
}

@media(max-width:640px) {
  .site-header.scrolled {
    height: 66px;
  }

  .inner-hero {
    min-height: 440px;
  }

  .inner-hero h1 {
    font-size: 34px;
  }

  .detail-hero h1,.project-hero h1 {
    font-size: 32px;
  }
}

/* Brand sizing and LINE contact button */

.brand img {
  width: 210px;
  height: auto;
  max-height: 62px;
}

.footer-brand img {
  width: 210px;
  max-width: 100%;
  height: auto;
}

.floating-line {
  width: 66px;
  height: 66px;
  padding: 11px;
  background: #06c755;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 30px rgba(6,199,85,.3);
}

.floating-line img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.floating-line:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 34px rgba(6,199,85,.38);
}

@media(max-width:640px) {
  .brand img {
    width: 200px;
    height: auto;
    max-height: 48px;
  }

  .footer-brand img {
    width: 200px;
  }

  .floating-line {
    width: 58px;
    height: 58px;
    padding: 9px;
  }
}

/* Full-screen mobile navigation */

.mobile-menu-info {
  display: none;
}

@media(max-width:980px) {
  body.menu-open {
    width: 100%;
    overflow: hidden;
  }

  .site-header {
    height: 72px;
    padding: 0 22px;
  }

  .site-header.scrolled {
    height: 66px;
  }

  .site-header.menu-active {
    height: 100dvh!important;
    background: #2d3d36;
    box-shadow: none;
    backdrop-filter: none;
    border: 0;
    align-items: flex-start;
  }

  .site-header.menu-active .brand,.site-header.menu-active .nav-toggle {
    margin-top: 12px;
    pointer-events: auto;
  }

  .main-nav {
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    padding: 100px 28px 34px;
    overflow-y: auto;
    overscroll-behavior: contain;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(155deg,#34483f 0%,#25332d 100%);
    visibility: hidden;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
  }

  .main-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .main-nav>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 9px 4px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font: 500 17px var(--serif);
    letter-spacing: .06em;
  }

  .main-nav>a:not(.nav-cta):after {
    content: "↗";
    position: static;
    width: auto;
    height: auto;
    background: none;
    font: 12px var(--sans);
    opacity: .5;
  }

  .main-nav>a.active {
    color: #e6d5bd;
  }

  .main-nav .nav-cta {
    min-height: 50px;
    margin: 18px 0 22px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.55);
    justify-content: center;
    font: 500 13px var(--sans);
    letter-spacing: .14em;
  }

  .mobile-menu-info {
    display: block;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.18);
  }

  .mobile-menu-label {
    margin-bottom: 14px;
    color: #e4d6c2;
    font: 500 15px var(--serif);
    letter-spacing: .1em;
  }

  .mobile-menu-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .mobile-menu-contact a {
    padding: 13px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.08);
  }

  .mobile-menu-contact small,.mobile-menu-contact strong {
    display: block;
  }

  .mobile-menu-contact small {
    margin-bottom: 4px;
    color: rgba(255,255,255,.58);
    font-size: 9px;
    letter-spacing: .1em;
  }

  .mobile-menu-contact strong {
    font-size: 13px;
  }

  .mobile-menu-address {
    margin: 14px 0 0;
    color: rgba(255,255,255,.58);
    font-size: 11px;
    line-height: 1.75;
  }

  .nav-toggle {
    z-index: 4;
  }

  .nav-toggle i {
    transition: transform .3s,opacity .3s;
  }

  .nav-toggle.active i:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle.active i:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }
}

@media(max-width:380px),(max-height:700px) and (max-width:980px) {
  .main-nav {
    padding-top: 82px;
    padding-bottom: 20px;
  }

  .main-nav>a {
    min-height: 40px;
    font-size: 15px;
  }

  .main-nav .nav-cta {
    margin: 12px 0;
  }

  .mobile-menu-info {
    padding-top: 14px;
  }

  .mobile-menu-address {
    display: none;
  }
}
