/* Shared accessibility, reading and interaction refinements. */
:root { --gx-focus: #b86f78; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gx-focus);
  outline-offset: 4px;
}
button, summary { touch-action: manipulation; }
button { min-width: 44px; min-height: 44px; }
::selection { background: rgba(184,111,120,.22); }

/* Home navigation now works as static HTML, with no hydration dependency. */
#site-nav.nav-scrolled {
  color: #211e1b;
  background: rgba(250,249,247,.96);
  box-shadow: 0 1px 0 rgba(33,30,27,.1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
#site-nav.nav-scrolled nav a { color: #37312d; }
#site-nav.nav-scrolled nav a:last-child { border-color: #5b514b; }
#site-nav.nav-scrolled #menu-btn span { background: #292521; }
#site-nav.menu-open { background: #141210; box-shadow: none; }
#site-nav.menu-open nav a { color: rgba(255,255,255,.85); }
#site-nav.menu-open #menu-btn span { background: #fff; }
/* Standalone knowledge/designer navigation gains a solid reading surface after scroll. */
body > nav { transition: background-color .25s ease, box-shadow .25s ease; }
body > nav.nav-scrolled {
  background: rgba(20,18,16,.94);
  box-shadow: 0 1px 0 rgba(236,231,221,.1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 88px 24px 36px;
  color: #fff;
  background: #141210;
  transition: opacity .2s ease, visibility .2s ease;
}
#mobile-menu.open { visibility: visible; opacity: 1; pointer-events: auto; }
#mobile-menu a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  letter-spacing: .14em;
}

/* Readable, balanced data labels on narrow screens. */
.stat-card { min-width: 0; }
.stat-label { word-break: keep-all; overflow-wrap: normal; line-height: 1.75; }
.stat-label span { white-space: nowrap; }
@media (max-width: 639px) {
  .stat-card { padding: 22px 14px; }
}

/* Native FAQ disclosures: compact by default, obvious affordance, generous targets. */
.faq-item:last-of-type { border-bottom: 1px solid rgba(33,30,27,.15); }
.faq-summary {
  display: grid;
  grid-template-columns: 12px minmax(0,1fr) 32px;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-marker { width: 6px; height: 6px; background: #a45f68; transform: rotate(45deg); }
.faq-question { font-size: 18px; line-height: 1.65; letter-spacing: .08em; }
.faq-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 300;
  color: #746a64;
  transition: transform .2s ease;
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-answer { padding: 0 44px 28px 28px; }
.faq-answer p { color: #625a55; font-size: 15px; line-height: 2; }
@media (max-width: 767px) {
  .faq-summary { grid-template-columns: 8px minmax(0,1fr) 28px; gap: 12px; min-height: 70px; }
  .faq-question { font-size: 16px; letter-spacing: .04em; }
  .faq-answer { padding: 0 8px 24px 20px; }
  .faq-answer p { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Homepage hero: the work stays visible while the message carries the contrast. */
.hero-shade {
  background:
    linear-gradient(180deg, rgba(12,10,9,.64) 0%, rgba(12,10,9,.16) 30%, rgba(12,10,9,.24) 62%, rgba(12,10,9,.68) 100%),
    radial-gradient(ellipse at center, rgba(12,10,9,.42) 0%, rgba(12,10,9,.08) 68%);
}
.hero-content { width: 100%; max-width: 960px; margin-inline: auto; padding-bottom: 28px; text-shadow: 0 2px 24px rgba(0,0,0,.26); }
.hero-eyebrow { font-size: 11px; letter-spacing: .34em; color: rgba(255,255,255,.78); }
.hero-title { margin-top: 26px; font-size: clamp(30px, 4.4vw, 62px); line-height: 1.35; letter-spacing: .12em; text-wrap: balance; }
.hero-motto { margin-top: 20px; font-size: clamp(17px, 1.6vw, 23px); letter-spacing: .28em; color: rgba(255,255,255,.9); }
.hero-value { margin: 30px auto 0; font-size: 14px; line-height: 2; letter-spacing: .08em; color: rgba(255,255,255,.84); }
.hero-value .hero-mobile-break::after { content: none; }
.hero-value .hero-mobile-break { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; text-shadow: none; }
.hero-btn, .case-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 12px 25px;
  border: 1px solid rgba(255,255,255,.65);
  font-size: 14px;
  letter-spacing: .1em;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.hero-btn:hover, .case-btn:hover { transform: translateY(-2px); }
.hero-btn:active, .case-btn:active { transform: translateY(0); }
.hero-btn-primary { color: #211e1b; background: #f4f0e8; border-color: #f4f0e8; }
.hero-btn-primary:hover { background: #fff; }
.hero-btn-secondary { color: #fff; background: rgba(20,18,16,.12); }
.hero-btn-secondary:hover { color: #211e1b; background: #f4f0e8; border-color: #f4f0e8; }

.project-image { position: relative; }
.project-status {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.34);
  color: #fff;
  background: rgba(20,18,16,.76);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .12em;
  pointer-events: none;
}
.project-status.status-render { background: rgba(119,74,64,.88); }

/* Project evidence and inquiry flow. */
.ov-label { color: rgba(236,231,221,.68); }
.case-consult { padding: 56px 24px 86px; }
.case-consult-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.case-consult h2 { margin-top: 18px; font-size: clamp(28px,4vw,46px); line-height: 1.45; letter-spacing: .1em; }
.case-consult-inner > p:not(.num-en) { max-width: 620px; margin: 22px auto 0; color: rgba(236,231,221,.72); font-size: 15px; line-height: 2; }
.case-consult-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.case-btn { color: #ece7dd; border-color: rgba(236,231,221,.35); }
.case-btn:hover { color: #141210; background: #ece7dd; border-color: #ece7dd; }
.case-btn-primary { color: #141210; background: #ece7dd; border-color: #ece7dd; }
.case-btn-primary:hover { background: #fff; }
.photo-trigger { display: block; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo-trigger img { width: 100%; height: 100%; object-fit: cover; }

.project-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: rgba(10,9,8,.96);
  overflow: hidden;
}
.project-lightbox::backdrop { background: rgba(10,9,8,.96); }
.lightbox-shell { position: relative; display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; padding: 72px 72px 88px; }
.lightbox-image { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: #fff;
  background: rgba(20,18,16,.58);
  font-size: 24px;
  cursor: pointer;
}
.lightbox-close { top: 22px; right: 22px; font-size: 28px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; right: 24px; bottom: 24px; left: 24px; margin: 0; text-align: center; color: rgba(255,255,255,.8); font-size: 13px; line-height: 1.6; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(201,130,138,.8); }
@media (max-width: 767px) {
  .hero-content { padding: 0 20px 54px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: .25em; }
  .hero-title { margin-top: 20px; font-size: 30px; line-height: 1.5; letter-spacing: .06em; }
  .hero-motto { margin-top: 14px; font-size: 16px; letter-spacing: .18em; }
  .hero-value { margin-top: 24px; font-size: 13px; line-height: 2; }
  .hero-value .hero-mobile-break { display: block; }
  .hero-value .hero-mobile-break::after { content: none; }
  .hero-actions { margin-top: 28px; gap: 10px; }
  .hero-btn { min-height: 46px; padding: 11px 18px; font-size: 13px; gap: 12px; }
  .case-consult { padding: 38px 22px 68px; }
  .case-btn { width: 100%; }
  .lightbox-shell { padding: 74px 12px 92px; }
  .lightbox-close { top: 14px; right: 14px; }
  .lightbox-prev { left: 12px; top: auto; bottom: 22px; transform: none; }
  .lightbox-next { right: 12px; top: auto; bottom: 22px; transform: none; }
  .lightbox-caption { right: 70px; bottom: 28px; left: 70px; font-size: 11px; }
}

@media (max-width:767px){.hero-value .hero-dot{display:none}}

@media (max-width:767px){.hero-title-line{display:block}}

/* Case discovery and location actions. */
.case-filters { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 44px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-buttons button {
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(236,231,221,.78);
  background: transparent;
  font-size: 13px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.filter-buttons button:hover { color: #fff; border-color: rgba(255,255,255,.55); }
.filter-buttons button[aria-pressed="true"] { color: #141210; background: #ece7dd; border-color: #ece7dd; }
.filter-count { flex: none; margin: 0; color: rgba(236,231,221,.68); font-size: 12px; letter-spacing: .1em; }
.filter-empty { padding: 60px 0; text-align: center; color: rgba(236,231,221,.72); }
.project-card[hidden] { display: none !important; }
.map-link { display: inline-flex; min-height: 44px; align-items: center; margin: 8px 0 0 24px; color: #d59aa1; font-size: 13px; letter-spacing: .08em; text-decoration: none; }
.map-link:hover { color: #f0c2c7; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 767px) {
  .case-filters { display: block; margin-bottom: 34px; }
  .filter-buttons { gap: 7px; }
  .filter-buttons button { padding: 8px 13px; font-size: 12px; }
  .filter-count { margin-top: 14px; }
}

/* Switch to the compact menu before the full navigation can crowd the logo. */
@media (min-width: 768px) and (max-width: 1199px) {
  header > div > nav { display: none !important; }
  #menu-btn { display: flex !important; }
}

html { overflow-x: hidden; }
@media (min-width:768px) and (max-width:1199px){#about .about-layout{grid-template-columns:1fr!important}}
@media (min-width:640px) and (max-width:1399px){.stat-card{padding:22px 14px}}
/* Intrinsic image ratio must determine the figure height, including before lazy load. */
.gallery .photo-trigger { height: auto; }
.gallery .photo-trigger img { height: auto; }

/* More Works: static links remain a swipe list without JS; enhanced as a 3D ring. */
.more-works { overflow: hidden; --mw-card-w: 320px; }
.more-works-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 64px) / 3);
  gap: 32px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.more-works-track::-webkit-scrollbar { display: none; }
.more-work-card { min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.more-works-track.is-ring-ready {
  display: block;
  height: 400px;
  overflow: visible;
  padding: 0;
  perspective: 1100px;
  perspective-origin: 50% 44%;
  scroll-snap-type: none;
  touch-action: pan-y;
  cursor: grab;
}
.more-works-track.is-ring-ready:active { cursor: grabbing; }
.more-works-ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .28s ease-out;
  will-change: transform;
}
.is-ring-ready .more-work-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--mw-card-w);
  margin: 0;
  background: #141210;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: .18;
  filter: brightness(.58);
  transition: opacity .2s ease, filter .2s ease;
}
.is-ring-ready .more-work-card.is-near { opacity: .52; }
.is-ring-ready .more-work-card.is-active { opacity: 1; filter: none; }
.is-ring-ready .more-work-card img { pointer-events: none; user-select: none; -webkit-user-drag: none; }
.more-works-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}
.more-works-status {
  margin: 0;
  color: rgba(236,231,221,.62);
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  letter-spacing: .18em;
}
.more-works-buttons { display: flex; align-items: center; gap: 10px; }
.more-works-buttons button {
  display: inline-flex;
  min-width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(236,231,221,.24);
  color: var(--fg, #ece7dd);
  background: transparent;
  font-size: 17px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.more-works-buttons button:hover { color: #141210; border-color: #ece7dd; background: #ece7dd; }
.more-works-buttons .more-works-toggle { min-width: 68px; font-size: 12px; letter-spacing: .12em; }
@media (max-width: 1023px) {
  .more-works { --mw-card-w: 280px; }
  .more-works-track { grid-auto-columns: calc((100% - 32px) / 2); }
  .more-works-track.is-ring-ready { height: 370px; perspective: 950px; }
}
@media (max-width: 639px) {
  .more-works { --mw-card-w: 230px; }
  .more-works-track { grid-auto-columns: 100%; gap: 20px; }
  .more-works-track.is-ring-ready { height: 340px; perspective: 850px; }
  .more-works-controls { margin-top: 22px; }
  .more-works-buttons { gap: 8px; }
  .more-works-buttons button { min-width: 44px; height: 44px; padding: 0 12px; }
  .more-works-buttons .more-works-toggle { min-width: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .more-works-track { scroll-behavior: auto; scroll-snap-type: none; }
  .more-works-ring { transition: none; }
  .is-ring-ready .more-work-card { transition: none; }
}

/* Narrow-screen editorial line breaks: keep meaning and numeric ranges intact. */
.business-hours { white-space: nowrap; }
@media (max-width: 767px) {
  .project-hero-title {
    font-size: clamp(36px,11vw,48px);
    line-height: 1.28;
    letter-spacing: .12em;
    text-wrap: balance;
  }
  .project-hero-meta {
    font-size: 11px;
    line-height: 2;
    letter-spacing: .16em;
    text-wrap: balance;
  }
  .contact-hero-subtitle {
    max-width: 330px;
    margin-right: auto;
    margin-left: auto;
    font-size: 12px;
    line-height: 2;
    letter-spacing: .16em;
    text-wrap: balance;
  }
  .contact-hours { line-height: 2; letter-spacing: .08em; }
  .designer-kicker { font-size: 10px; letter-spacing: .22em; }
  .designer-kicker > span { flex: none; }
}


/* Homepage WeChat consultation: visible QR, hover popover, and mobile dialog. */
.nav-qr { position: relative; flex: none; }
.nav-qr::before { content: ""; position: absolute; top: 100%; right: 0; width: 100%; height: 16px; }
.nav-qr-trigger { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.nav-qr-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  width: 276px;
  padding: 22px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  border: 1px solid rgba(236,231,221,.2);
  color: #ece7dd;
  background: #1c1a17;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-qr:hover .nav-qr-popover, .nav-qr.is-open .nav-qr-popover {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-qr-heading { margin: 0 0 16px; font-family: "Noto Serif SC", serif; font-size: 18px; letter-spacing: .1em; text-align: center; }
.nav-qr-image { padding: 9px; background: #fff; }
.nav-qr-image img { display: block; width: 100%; height: auto; }
.nav-qr-help { margin: 14px 0 0; color: rgba(236,231,221,.72); font-size: 13px; line-height: 1.8; text-align: center; }
.nav-qr-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.nav-qr-actions a { display: inline-flex; min-height: 44px; align-items: center; color: #ece7dd; font-size: 12px; text-underline-offset: 4px; }
.nav-qr-actions a:hover { color: #d59aa1; }
#site-nav.nav-scrolled .nav-qr-trigger { border-color: #5b514b; }
#site-nav.nav-scrolled .nav-qr-trigger:hover { color: #f4f0e8; background: #37312d; }

.home-wechat {
  display: grid;
  grid-template-columns: minmax(0,1fr) 144px;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.home-wechat-kicker { margin: 0 0 10px; color: #c9828a; font-family: "Cormorant Garamond", serif; font-size: 14px; letter-spacing: .12em; }
.home-wechat h3 { margin: 0; font-family: "Noto Serif SC", serif; font-size: 21px; font-weight: 400; line-height: 1.6; letter-spacing: .06em; }
.home-wechat-copy > p:not(.home-wechat-kicker) { margin: 12px 0 0; color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.9; }
.home-wechat-copy > a { display: inline-flex; min-height: 44px; align-items: center; margin-top: 8px; color: #d59aa1; font-size: 13px; text-underline-offset: 4px; }
.home-wechat-copy > a:hover { color: #f0c2c7; }
.home-wechat-image { padding: 8px; background: #fff; }
.home-wechat-image img { display: block; width: 100%; height: auto; }

.wechat-dialog {
  width: min(360px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(236,231,221,.2);
  color: #ece7dd;
  background: #1c1a17;
  overflow: auto;
}
.wechat-dialog::backdrop { background: rgba(10,9,8,.82); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.wechat-dialog-inner { position: relative; padding: 32px; text-align: center; }
.wechat-dialog-close { position: absolute; top: 8px; right: 8px; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; border: 0; color: #ece7dd; background: transparent; font-size: 28px; cursor: pointer; }
.wechat-dialog-close:hover { color: #d59aa1; }
.wechat-dialog-kicker { margin: 8px 0 0; color: #c9828a; font-family: "Cormorant Garamond", serif; font-size: 14px; letter-spacing: .12em; }
.wechat-dialog-title { margin: 12px 0 20px; font-family: "Noto Serif SC", serif; font-size: 25px; font-weight: 400; letter-spacing: .08em; }
.wechat-dialog-image { display: block; width: min(224px, 100%); height: auto; margin: 0 auto; padding: 8px; background: #fff; }
.wechat-dialog-help { margin: 16px 0 0; color: rgba(236,231,221,.72); font-size: 14px; line-height: 1.8; }
.wechat-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.wechat-dialog-actions a { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 8px; border: 1px solid rgba(236,231,221,.3); color: #ece7dd; font-size: 13px; text-decoration: none; }
.wechat-dialog-actions a:hover { color: #141210; background: #ece7dd; }

@media (max-width: 639px) {
  .home-wechat { grid-template-columns: minmax(0,1fr) 112px; gap: 16px; padding: 22px 0; }
  .home-wechat-kicker { font-size: 12px; }
  .home-wechat h3 { font-size: 18px; line-height: 1.55; }
  .home-wechat-copy > p:not(.home-wechat-kicker) { font-size: 13px; line-height: 1.8; }
  .home-wechat-copy > a { font-size: 12px; }
  .home-wechat-image { padding: 6px; }
  .wechat-dialog-inner { padding: 28px 24px 24px; }
}
