body {
	font-family: 'Open Sans', sans-serif;
}

/* Full viewport article carousel on the home page */
html:has(.home-page) { min-height: 100%; }
.home-page { min-height: 100vh; margin: 0; overflow-x: hidden; }
.home-navbar-container { width: 100%; max-width: none; margin: 0 !important; padding: 0; }
.home-page .home-navbar-container > .navbar { position: absolute; z-index: 5; top: 0; left: 0; width: 100%; padding: 1.25rem 5vw; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent); }
.home-page .navbar, .home-page .navbar a, .home-page .navbar-brand { color: #fff !important; }
.home-page, .home-page body { width: 100%; min-height: 100%; }
.home-page .home-navbar-container { position: relative; width: 100vw; height: 100vh; min-height: 480px; margin: 0 !important; padding: 0 !important; overflow: hidden; }
.home-page .home-slider { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; overflow: hidden; background: #222; }
.home-slide { position: absolute; inset: 0; display: flex; align-items: flex-end; color: #fff; text-decoration: none !important; background-position: center; background-size: cover; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .8s ease, visibility .8s ease; }
.home-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.home-slide:hover { color: #fff; }
.home-slide-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.62), transparent 58%), linear-gradient(180deg, rgba(0,0,0,.18), transparent 24%); }
.home-slide-caption { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .65rem; width: min(100%, 1100px); margin: 0 auto; padding: 0 7vw 12vh; }
.home-slide-label { font: 500 .78rem/1.4 'Manrope', sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.home-slide-title { max-width: 900px; font: 300 clamp(2.4rem, 6vw, 5.5rem)/1.12 'Noto Sans SC', sans-serif; letter-spacing: .02em; }
.home-slider-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); padding: 0; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: #fff; background: rgba(0,0,0,.16); font-size: 2rem; line-height: 1; }
.home-slider-arrow:hover { color: #fff; border-color: #fff; background: rgba(0,0,0,.38); }
.home-slider-prev { left: 2rem; }.home-slider-next { right: 2rem; }
.home-slider-dots { position: absolute; z-index: 2; right: 7vw; bottom: 2.5rem; display: flex; gap: .65rem; }
.home-slider-dot { width: 9px; height: 9px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: transparent; }
.home-slider-dot.is-active { background: #fff; }
@media (max-width: 600px) { .home-page .navbar { padding: 1rem 1.25rem; } .home-slide-caption { padding: 0 1.5rem 6rem; } .home-slider-prev { left: .75rem; } .home-slider-next { right: .75rem; } .home-slider-arrow { width: 38px; height: 38px; } .home-slider-dots { right: 1.5rem; bottom: 1.75rem; } }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: min(100% - 40px, 1320px); margin: 0 auto; padding: 1.25rem 0; border-top: 1px solid #e9e7e2; color: #88867f; font: 400 .7rem/1.6 'Manrope', 'Noto Sans SC', sans-serif; letter-spacing: .04em; }
@media (max-width: 600px) { .site-footer { flex-direction: column; align-items: flex-start; gap: .2rem; padding: 1rem 0; } }

form {
	max-width: 500px;
	margin: 0 auto;
}

button {
  color: #777;
	background: #fff;
  padding: 4px 12px 4px 12px;
  border: solid #777 2px;
	transition: all 0.3s ease-in-out;
  text-decoration: none;
}

button:hover {
	color: #000;
	border: solid #000 2px;
  text-decoration: none;
}

input, textarea {
	font-size: 0.8rem;
  border: 1px solid #ddd;
  background: #fff;
  padding: 0.5rem 0.7rem;
	margin: 5px 0;
  transition: all 0.3s ease-in-out;
  width: 100%;

}

input:focus, textarea:focus {
  border-color: #777;
  outline: none;
}

.portfolio-content {
	line-height: 2;
	color: #555;
}

.portfolio-content a {
	color: #333;
	text-decoration: none;
	border-bottom: 1px solid #bbb;
}

.portfolio-content a:hover {
	color: #000;
	text-decoration: none;
	border-bottom: 1px solid #555;
}

h1, h2, h3 {
	font-family: 'Crimson Text', sans-serif;
	letter-spacing: 1px;
	font-weight: 300;
	margin-bottom: 20px;
}

.navbar-brand {
	font-weight: 800;
	font-size: 1.5rem;
	letter-spacing: 0.5px;
}

.navbar {
	text-transform: uppercase;
}

.nav-item {
	font-size: 0.8rem;
	font-weight: 300;
	letter-spacing: 1.5px;
}

.navbar-toggler {
	border: 0;
}

.navbar-toggler-right {
	right: 0rem;
}

.portfolio-img {
	width: 100%;
	max-height: 250px;
	display: block;
	object-fit: cover;
}

.project-img {
	width: 100%;
	display: block;
	object-fit: cover;
}

/* Image Hover Effect */

.hovereffect {
	width: 100%;
  height: 100%;
  float: left;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.hovereffect .overlay {
	width: 100%;
  height: 100%;
  position: absolute;
  overflow: hidden;
  top: 0;
  left: 0;
}

.hovereffect .overlay-text {
	font-size: 1.3rem;
	font-family: 'Crimson Text', sans-serif;
	font-weight: 300;
	color: #000;
	left: 50%;
	position: absolute;
	top: 50%;
	width: 100%;
	-webkit-transform: translate(-50%,-50%);
	-ms-transform: translate(-50%,-50%);
	transform: translate(-50%,-50%);
	opacity: 0;
  filter: alpha(opacity=0);
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
}

.hovereffect:hover .overlay-text {
	opacity: 1;
  filter: alpha(opacity=100);
}

.hovereffect img {
  display: block;
  position: relative;
  max-width: none;
	width: 100%;
	height: 100%;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hovereffect:hover img {
  opacity: 0;
  filter: alpha(opacity=0);
}
.page-nav {
	width: 50%;
	margin: 0 auto;
	text-align: center;
}
.page-nav a,
.page-nav span {
	font-size: 1.3rem;
	font-family: 'Crimson Text', sans-serif;
	font-weight: 300;
	margin: 0 10px;
	color: #000;
}

/* Projects index */
.projects-page {
	max-width: 1440px;
	margin: 0 auto 5rem;
	padding: 0 2.5rem;
	color: #292925;
}

.projects-heading {
	padding: 2.5rem 0 3.25rem;
}

.projects-eyebrow {
	margin: 0 0 .65rem;
	color: #85847e;
	font-size: .68rem;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.projects-heading h1 {
	margin: 0;
	font-size: clamp(2.5rem, 5vw, 5rem);
	letter-spacing: -.035em;
}

.projects-toolbar {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1rem 0;
	border-top: 1px solid #d9d8d2;
	border-bottom: 1px solid #d9d8d2;
}

.projects-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 1.6rem;
}

.project-filter {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin: 0;
	color: #77766f;
	font-size: .72rem;
}

.project-filter select {
	width: auto;
	min-width: 4rem;
	margin: 0;
	padding: .2rem 1.2rem .2rem 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #292925;
	font: inherit;
	cursor: pointer;
}

.project-view-toggle {
	display: flex;
	gap: 1rem;
}

.project-view-toggle button {
	padding: .2rem 0;
	border: 0;
	color: #85847e;
	font: inherit;
	font-size: .72rem;
}

.project-view-toggle button.is-active,
.project-view-toggle button:hover {
	color: #292925;
}

.project-list-head,
.project-row {
	display: grid;
	grid-template-columns: minmax(13rem, 2.2fr) repeat(4, minmax(6rem, 1fr));
	align-items: center;
	column-gap: 1rem;
}

.project-list-head {
	padding: 1.2rem 0 .75rem;
	color: #85847e;
	font-size: .65rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.project-row {
	position: relative;
	min-height: 4.2rem;
	border-top: 1px solid #e5e4df;
	color: #292925;
	font-size: .85rem;
	text-decoration: none;
}

.project-row:hover {
	color: #77766f;
	text-decoration: none;
}

.project-name {
	position: relative;
	width: fit-content;
}

.project-row-image {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: calc(100% + 1rem);
	width: 10rem;
	transform: translateY(-50%);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
}

.project-row-image img,
.project-card-image img {
	display: block;
	width: 100%;
	object-fit: cover;
}

.project-row-image img { aspect-ratio: 4 / 3; }
.project-row:hover .project-row-image { opacity: 1; }

.projects-empty {
	margin: 0;
	padding: 2rem 0;
	border-top: 1px solid #e5e4df;
	color: #85847e;
	font-size: .85rem;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem 1rem;
	padding-top: 1.5rem;
}

.project-card {
	color: #292925;
	font-size: .8rem;
	text-decoration: none;
}

.project-card:hover {
	color: #77766f;
	text-decoration: none;
}

.project-card-image {
	overflow: hidden;
	background: #e8e7e1;
}

.project-card-image img {
	aspect-ratio: 4 / 3;
	transition: transform .35s ease;
}

.project-card:hover .project-card-image img { transform: scale(1.025); }

.project-card-caption {
	display: flex;
	justify-content: space-between;
	gap: .75rem;
	padding-top: .65rem;
}

.project-card-caption span:last-child {
	color: #85847e;
	text-align: right;
}

.projects-page [hidden] { display: none !important; }

/* Closer to the quiet, image-led project directory reference. */
body.projects-body {
	background: #f8f7f4;
	color: #292824;
}

body.projects-body .navbar-container {
	margin: 0 !important;
	padding: 0 20px;
}

.projects-page {
	max-width: none;
	margin: 0 auto 4rem;
	padding: 0;
}

.projects-site-header {
	padding-top: 36px;
	font-family: 'Manrope', sans-serif;
	font-size: 11px;
	line-height: 1.35;
	text-transform: uppercase;
}

.projects-brand {
	display: inline-block;
	margin-bottom: 13px;
	color: #222;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: -.025em;
}

.projects-brand:hover,
.projects-site-nav a:hover {
	color: #222;
	text-decoration: none;
}

.projects-site-nav {
	display: flex;
	gap: 17px;
}

.projects-site-nav a {
	color: #aaa9a4;
	font-size: 10px;
	letter-spacing: .04em;
}

.projects-site-nav a.is-current { color: #222; }

.projects-toolbar {
	margin-top: 105px;
	padding: 11px 0;
	border-top-color: #deddd8;
	border-bottom-color: #deddd8;
}

.project-filter-label {
	color: #292824;
	font-size: .72rem;
}

.project-list-head {
	padding-top: 18px;
	padding-bottom: 12px;
}

.project-row {
	min-height: 4.3rem;
	font-family: 'Crimson Text', Georgia, serif;
	font-size: 1rem;
}

.project-row > span:not(:first-child) {
	font-family: 'Open Sans', sans-serif;
	font-size: .72rem;
}

.project-view-toggle button {
	font-size: 10px;
	text-transform: uppercase;
}

.project-card {
	font-family: 'Crimson Text', Georgia, serif;
	font-size: 1rem;
}

.project-card-image { background: #e7e6e1; }

.project-card-caption span:last-child {
	font-size: .83rem;
}

.projects-empty {
	font-family: 'Crimson Text', Georgia, serif;
	font-size: .95rem;
}

/* About / biography page */
body.about-body {
	background: #fff;
	color: #292824;
}

/* Contact page */
.contact-page { width: min(100% - 40px, 1120px); margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) 0 6rem; color: #292824; }
.contact-heading { max-width: 620px; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.contact-eyebrow { margin: 0 0 .8rem; color: #77766f; font: 500 .7rem/1.4 'Manrope', sans-serif; letter-spacing: .2em; }
.contact-heading h1 { margin: 0 0 1rem; font: 400 clamp(2rem, 4vw, 3rem)/1.35 'Noto Serif SC', 'Songti SC', serif; letter-spacing: .06em; }
.contact-intro { margin: 0; color: #77766f; font: 400 1rem/1.9 'Noto Serif SC', 'Songti SC', serif; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: clamp(2.5rem, 8vw, 8rem); align-items: start; }
.contact-links { border-top: 1px solid #e6e4df; }
.contact-link { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid #e6e4df; color: #292824; text-decoration: none !important; }
.contact-link:hover { color: #77766f; }
.contact-label { flex: 0 0 auto; color: #77766f; font: 500 .75rem/1.5 'Manrope', 'Noto Sans SC', sans-serif; letter-spacing: .08em; }
.contact-detail { font: 400 1rem/1.5 'Manrope', 'Noto Serif SC', sans-serif; text-align: right; overflow-wrap: anywhere; }
.contact-detail span { margin-left: .35rem; font-size: .8em; }
.contact-wechat { position: relative; }
.contact-wechat-trigger { cursor: default; }
.contact-wechat-trigger:hover, .contact-wechat-trigger:focus { color: #77766f; outline: none; }
.contact-wechat-popover { position: absolute; z-index: 1000; top: 50%; right: auto; bottom: auto; left: calc(100% + 1rem); display: block; width: min(420px, 42vw); max-width: none; padding: 0; overflow: hidden; border: 0; background: transparent; box-shadow: 0 10px 30px rgba(0,0,0,.16); opacity: 0; visibility: hidden; transform: translateY(calc(-50% + 4px)); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.contact-wechat .contact-wechat-popover img { display: block; width: 100%; max-width: none; height: auto; margin: 0; aspect-ratio: auto; object-fit: contain; }
.contact-wechat:hover .contact-wechat-popover, .contact-wechat:focus-within .contact-wechat-popover { opacity: 1; visibility: visible; transform: translateY(-50%); }
@media (max-width: 767px) { .contact-page { width: calc(100% - 40px); padding-top: 1.5rem; } .contact-layout { grid-template-columns: 1fr; gap: 2rem; } .contact-detail { font-size: .9rem; } .contact-wechat-popover { left: calc(100% + .5rem); width: min(320px, 55vw); } }

body.about-body .navbar-container {
	margin: 0 !important;
	width: 100%;
	padding: 0;
}

.about-page {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 20px;
	color: #292824;
}

.about-article {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
	align-items: start;
	column-gap: clamp(2.5rem, 6vw, 6rem);
	width: 100%;
	margin-top: 21px;
	padding-bottom: 5rem;
}

.about-portrait {
	width: 100%;
	margin: 0;
	padding-top: 0;
	background: #fff;
}

.about-portrait img {
	display: block;
	width: 100%;
	max-height: 78vh;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 60% center;
}

.about-portrait figcaption {
	margin-top: .75rem;
	color: #55534d;
	font-family: 'Noto Serif SC', 'Kaiti SC', 'STKaiti', 'KaiTi', cursive;
	font-size: 1.05rem;
	font-style: italic;
	letter-spacing: .12em;
	line-height: 1.6;
	text-align: center;
}

.about-copy {
	width: 100%;
	padding-top: 0;
	color: #292824;
	font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.85;
	max-width: 620px;
}

.about-copy p {
	font-size: inherit;
	margin: 0 0 1.35rem;
}

.about-copy h3 {
	margin: 2rem 0 .75rem;
	font-family: 'Manrope', sans-serif;
	font-size: .68rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.about-copy h2 {
	font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
	font-size: clamp(1.8rem, 2.4vw, 2.4rem);
	font-weight: 400;
	letter-spacing: .06em;
	line-height: 1.4;
}

.about-subnav {
	position: fixed;
	z-index: 5;
	bottom: 20px;
	left: max(20px, calc((100vw - 1200px) / 2 + 20px));
	display: flex;
	gap: 22px;
	font-family: 'Manrope', sans-serif;
	font-size: 10px;
	line-height: 1.4;
	text-transform: uppercase;
}

.about-subnav a {
	color: #aaa9a4;
}

.about-subnav a:hover,
.about-subnav a.is-current {
	color: #222;
	text-decoration: none;
}

/* Contact page */
.contact-page { width: min(100% - 40px, 1120px); margin: clamp(3rem, 8vh, 6rem) auto 6rem; color: #292824; }
.contact-intro { margin-bottom: clamp(2rem, 5vw, 4rem); }
.contact-eyebrow { margin: 0 0 .75rem; color: #8a887f; font: 500 .7rem/1.4 'Manrope', sans-serif; letter-spacing: .22em; }
.contact-intro h1 { margin: 0 0 .75rem; font: 400 clamp(2rem, 4vw, 3.1rem)/1.3 'Noto Serif SC', 'Songti SC', serif; letter-spacing: .05em; }
.contact-intro > p:last-child { color: #77766f; font: 400 1rem/1.8 'Noto Serif SC', 'Songti SC', serif; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #e6e4df; border-left: 1px solid #e6e4df; }
.contact-card { position: relative; display: flex; min-height: 220px; flex-direction: column; align-items: flex-start; padding: clamp(1.5rem, 3.5vw, 2.75rem); border-right: 1px solid #e6e4df; border-bottom: 1px solid #e6e4df; color: inherit; background: #fff; text-decoration: none !important; transition: background .2s ease; }
.contact-link-card:hover { color: inherit; background: #faf9f7; }
.contact-number { color: #a7a49c; font: 400 .72rem/1 'Manrope', sans-serif; letter-spacing: .12em; }
.contact-name { margin-top: 1.2rem; font: 400 1.45rem/1.4 'Noto Serif SC', 'Songti SC', serif; letter-spacing: .04em; }
.contact-detail { margin-top: .55rem; color: #77766f; font: 400 .9rem/1.7 'Noto Serif SC', 'Songti SC', serif; }
.contact-action { margin-top: auto; padding-top: 1.5rem; color: #55534d; font: 500 .72rem/1.4 'Manrope', sans-serif; letter-spacing: .08em; }
.contact-wechat img { width: 112px; height: 112px; margin-top: 1rem; object-fit: contain; }
.contact-wechat .contact-detail { margin-top: .5rem; }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } .contact-card { min-height: 190px; } .contact-wechat { min-height: 270px; } }

@media (max-width: 767px) {
	body.projects-body .navbar-container { padding: 0 20px; }
	.projects-page { padding: 0; }
	.projects-site-header { padding-top: 35px; }
	.projects-toolbar { margin-top: 95px; }
	.projects-toolbar { align-items: flex-start; flex-direction: column; }
	.projects-filters { gap: .8rem 1.1rem; }
	.project-filter { gap: .25rem; }
	.project-list-head { display: none; }
	.project-row {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: .2rem .75rem;
		padding: .8rem 0;
	}
	.project-row > span:not(:first-child) { color: #85847e; font-size: .72rem; }
	.project-row > span:nth-child(2)::after { content: ', '; }
	.project-row > span:nth-child(3) { grid-column: 2; grid-row: 1; }
	.project-row > span:nth-child(4),
	.project-row > span:nth-child(5) { display: none; }
	.project-row-image { display: none; }
	.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .65rem; }
	.project-card-caption { flex-direction: column; gap: .2rem; }
	.project-card-caption span:last-child { text-align: left; }
	.about-page { padding: 0 20px; }
	.about-article {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: 1.5rem;
		margin-top: 20px;
	}
	.about-portrait { margin-bottom: 0; }
	.about-portrait img { max-height: 68vh; }
	.about-copy { font-size: 16px; line-height: 1.8; }
}

@media (max-width: 600px) {
	.about-article { display: block; }
	.about-portrait { margin-bottom: 2rem; }
}
