/* Chloe portfolio — warm personal brand theme */

:root {
	--cream: #faf5ee;
	--cream-2: #f2ead9;
	--rust: #c4623a;
	--rust-dark: #9c4b2b;
	--ink: #3a2e26;
	--muted: #82736a;
	--line: #e9ddcc;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: "Nunito Sans", "Noto Sans TC", sans-serif;
	line-height: 1.75;
	font-size: 16px;
}

a {
	color: inherit;
}

img {
	max-width: 100%;
}

.serif {
	font-family: "Fraunces", "Noto Serif TC", serif;
}

.wrap {
	max-width: 1020px;
	margin: 0 auto;
	padding: 0 32px;
}

/* Header / nav */

header.nav {
	position: sticky;
	top: 0;
	background: rgba(250, 245, 238, .92);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--line);
	z-index: 100;
}

header.nav .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 76px;
}

header.nav.is-scrolled {
	box-shadow: 0 8px 24px -18px rgba(58, 46, 38, .5);
}

.brand {
	font-weight: 600;
	font-size: 19px;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 10px;
}

.brand-mark {
	width: 32px;
	height: 32px;
	object-fit: contain;
	flex-shrink: 0;
}

nav.links {
	display: flex;
	gap: 30px;
	font-size: 14px;
	color: var(--muted);
}

nav.links a {
	position: relative;
	text-decoration: none;
	padding-bottom: 2px;
}

nav.links a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--rust);
	transition: right .2s ease-in-out;
}

nav.links a:hover {
	color: var(--rust);
}

nav.links a:hover::after {
	right: 0;
}

.cta-small {
	background: var(--rust);
	color: #fff;
	padding: 10px 22px;
	border-radius: 24px;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 22px;
	color: var(--ink);
	cursor: pointer;
	padding: 4px 8px;
}

/* Hero */

.hero {
	padding: 88px 0 0;
	position: relative;
	overflow: hidden;
}

.hero-blob {
	position: absolute;
	border-radius: 62% 38% 55% 45% / 45% 55% 45% 55%;
	z-index: 0;
	pointer-events: none;
	animation: hero-float 9s ease-in-out infinite alternate;
}

.hero-blob-1 {
	width: 340px;
	height: 340px;
	background: var(--cream-2);
	top: -60px;
	right: -80px;
}

.hero-blob-2 {
	width: 220px;
	height: 220px;
	background: rgba(196, 98, 58, .08);
	bottom: 40px;
	left: -60px;
	animation-delay: -4s;
}

@keyframes hero-float {
	from { transform: translateY(0) rotate(0deg); }
	to { transform: translateY(-18px) rotate(6deg); }
}

.hero .wrap {
	position: relative;
	z-index: 1;
}

.hero-top {
	display: flex;
	align-items: center;
	gap: 60px;
}

.hero-copy {
	flex: 1;
}

.eyebrow {
	color: var(--rust-dark);
	font-weight: 700;
	font-size: 13px;
	margin-bottom: 18px;
}

.hero h1 {
	font-size: 38px;
	line-height: 1.4;
	font-weight: 600;
	margin: 0 0 18px;
}

.hero h1 .accent {
	color: var(--rust);
	text-decoration: underline wavy;
	text-decoration-color: var(--rust);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.hero-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
}

.hero-tag {
	border: 1px solid var(--rust);
	color: var(--rust-dark);
	font-size: 12.5px;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 20px;
}

.hero-top .hero-copy > p {
	color: var(--muted);
	font-size: 16.5px;
	max-width: 480px;
	margin: 0 0 32px;
}

.actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.btn-primary {
	background: var(--rust);
	color: #fff;
	padding: 14px 28px;
	border-radius: 26px;
	font-weight: 700;
	text-decoration: none;
	font-size: 14.5px;
	border: none;
	cursor: pointer;
	display: inline-block;
}

.btn-ghost {
	border: 1.5px solid var(--rust);
	color: var(--rust-dark);
	padding: 14px 28px;
	border-radius: 26px;
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 700;
}

.avatar-frame {
	width: 280px;
	height: 280px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	border: 8px solid #fff;
	box-shadow: 0 20px 40px -18px rgba(156, 75, 43, .5);
}

.avatar-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.stats-row {
	margin-top: 56px;
	padding: 32px 0;
	border-top: 1px solid var(--line);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.stat {
	text-align: center;
	border-left: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.stat:first-child {
	border-left: none;
}

.stat-num {
	font-size: 30px;
	font-weight: 600;
	color: var(--rust-dark);
}

.stat-label {
	font-size: 12.5px;
	color: var(--muted);
}

/* Sections */

section {
	padding: 68px 0;
}

section.alt {
	background: var(--cream-2);
	border-radius: 28px;
	margin: 0 24px;
}

h2.section-title {
	font-size: 27px;
	font-weight: 600;
	margin: 0 0 8px;
}

p.section-sub {
	color: var(--muted);
	margin: 0 0 40px;
	font-size: 15px;
	max-width: 640px;
}

.tag {
	display: inline-block;
	background: #fff;
	color: var(--rust-dark);
	font-size: 12.5px;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 20px;
	margin-bottom: 16px;
}

/* Services checklist */

.service-list {
	list-style: none;
	margin: 0 0 48px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px 32px;
}

.service-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14.5px;
	color: var(--ink);
}

.service-list li i {
	color: var(--rust);
	margin-top: 3px;
	flex-shrink: 0;
}

/* Capability tags */

.capability-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cap-tag {
	background: #fff;
	color: var(--rust-dark);
	font-size: 14px;
	font-weight: 700;
	padding: 12px 20px;
	border-radius: 30px;
}

/* Projects */

.work-category {
	margin-bottom: 48px;
}

.work-category:last-child {
	margin-bottom: 0;
}

.category-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 700;
	color: var(--rust-dark);
	margin: 0 0 20px;
}

.category-title i {
	font-size: 15px;
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px;
}

.project-card {
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	transition: transform .2s;
}

.project-card:hover {
	transform: translateY(-4px);
}

.project-card a.thumb {
	display: block;
}

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

.project-card .placeholder {
	height: 180px;
	background: var(--cream-2);
	color: var(--rust-dark);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.project-card .placeholder i {
	font-size: 32px;
}

.project-card .placeholder span {
	font-size: 12.5px;
	color: var(--muted);
}

.project-card .body {
	padding: 22px;
}

.project-card h3 {
	margin: 0 0 8px;
	font-size: 16px;
}

.project-card p {
	margin: 0 0 16px;
	font-size: 13.5px;
	color: var(--muted);
}

.card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}

.card-tag {
	background: var(--cream-2);
	color: var(--rust-dark);
	font-size: 11.5px;
	font-weight: 700;
	padding: 3px 11px;
	border-radius: 20px;
}

.card-link {
	display: inline-block;
	color: var(--rust-dark);
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
}

.card-link:hover {
	color: var(--rust);
}

/* Contact */

.contact-intro {
	margin: 0 0 40px;
	color: var(--muted);
	font-size: 15px;
	max-width: 640px;
}

.contact-row {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.contact-form {
	flex: 1 1 60%;
	background: #fff;
	border-radius: 20px;
	padding: 12px;
	overflow: hidden;
}

.contact-form iframe {
	width: 100%;
	border: 0;
	display: block;
}

.contact-side {
	flex: 1 1 32%;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.contact-info {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact-info li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.contact-info .icon-badge {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--cream-2);
	color: var(--rust-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
}

.contact-info .label {
	display: block;
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 2px;
}

.contact-info .value a:hover {
	color: var(--rust);
}

.contact-info li .line-qr {
	margin-left: auto;
	flex-shrink: 0;
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--line);
}

.contact-info li .line-qr img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	background: #fff;
}

.process-steps {
	background: #fff;
	border-radius: 20px;
	padding: 24px;
}

.process-steps h4 {
	margin: 0 0 18px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
}

.process-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: step;
}

.process-list li {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 14px;
	color: var(--ink);
	padding: 10px 0;
	position: relative;
}

.process-list li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 15px;
	top: 42px;
	width: 1px;
	height: 22px;
	background: var(--line);
}

.step-num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--cream-2);
	color: var(--rust-dark);
	font-weight: 700;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Footer */

footer#footer {
	padding: 48px 0 24px;
	color: var(--muted);
	font-size: 13px;
}

.footer-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--line);
}

.footer-brand {
	flex: 1 1 240px;
}

.footer-brand p {
	margin: 12px 0 0;
	font-size: 13px;
	max-width: 280px;
}

.footer-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
}

.footer-links a:hover {
	color: var(--rust);
}

.social-icons {
	list-style: none;
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0;
	height: fit-content;
}

.social-icons a {
	color: var(--muted);
	font-size: 17px;
}

.social-icons a:hover {
	color: var(--rust);
}

.footer-bottom {
	padding-top: 20px;
}

/* Poptrox lightbox */

.poptrox-popup {
	box-sizing: content-box;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 0.1em 0.15em 0 rgba(0, 0, 0, 0.15);
	overflow: hidden;
	padding-bottom: 3em;
}

.poptrox-popup .loader {
	text-decoration: none;
	animation: poptrox-spin 1s linear infinite;
	font-size: 1.5em;
	height: 1em;
	left: 50%;
	line-height: 1em;
	margin: -0.5em 0 0 -0.5em;
	position: absolute;
	top: 50%;
	width: 1em;
}

.poptrox-popup .loader:before {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	content: "\f1ce";
}

@keyframes poptrox-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.poptrox-popup .caption {
	background: #fff;
	color: var(--ink);
	bottom: 0;
	cursor: default;
	font-size: 0.9em;
	height: 3em;
	left: 0;
	line-height: 2.8em;
	position: absolute;
	text-align: center;
	width: 100%;
	z-index: 1;
}

.poptrox-popup .nav-next,
.poptrox-popup .nav-previous {
	text-decoration: none;
	transition: opacity 0.2s ease-in-out;
	background: rgba(0, 0, 0, 0.01);
	cursor: pointer;
	height: 100%;
	opacity: 0;
	position: absolute;
	top: 0;
	width: 50%;
}

.poptrox-popup .nav-next:before,
.poptrox-popup .nav-previous:before {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	color: #fff;
	font-size: 2.5em;
	height: 1em;
	line-height: 1em;
	margin-top: -0.75em;
	position: absolute;
	text-align: center;
	top: 50%;
	width: 1.5em;
}

.poptrox-popup .nav-next { right: 0; }
.poptrox-popup .nav-next:before { content: "\f105"; right: 0; }
.poptrox-popup .nav-previous { left: 0; }
.poptrox-popup .nav-previous:before { content: "\f104"; left: 0; }

.poptrox-popup .closer {
	text-decoration: none;
	transition: opacity 0.2s ease-in-out;
	color: #fff;
	height: 4em;
	line-height: 4em;
	opacity: 0;
	position: absolute;
	right: 0;
	text-align: center;
	top: 0;
	width: 4em;
	z-index: 2;
}

.poptrox-popup .closer:before {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	box-sizing: content-box;
	border-radius: 100%;
	border: solid 3px rgba(255, 255, 255, 0.5);
	content: "\f00d";
	display: block;
	font-size: 1em;
	height: 1.75em;
	left: 50%;
	line-height: 1.75em;
	margin: -0.875em 0 0 -0.875em;
	position: absolute;
	top: 50%;
	width: 1.75em;
}

.poptrox-popup:hover .nav-next,
.poptrox-popup:hover .nav-previous,
.poptrox-popup:hover .closer {
	opacity: 0.5;
}

.poptrox-popup:hover .nav-next:hover,
.poptrox-popup:hover .nav-previous:hover,
.poptrox-popup:hover .closer:hover {
	opacity: 1.0;
}

/* Responsive */

@media screen and (max-width: 900px) {
	.hero-top {
		flex-direction: column-reverse;
		text-align: center;
		gap: 32px;
	}

	.hero-top .hero-copy > p {
		margin-left: auto;
		margin-right: auto;
	}

	.hero-tags {
		justify-content: center;
	}

	.actions {
		justify-content: center;
	}

	.avatar-frame {
		width: 220px;
		height: 220px;
	}

	.stats-row {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 24px;
	}

	.stat:nth-child(3) {
		border-left: none;
	}

	.projects-grid {
		grid-template-columns: 1fr;
	}

	.service-list {
		grid-template-columns: 1fr;
	}

	.contact-row {
		flex-direction: column;
	}

	.contact-form iframe {
		height: 500px;
	}
}

@media screen and (max-width: 640px) {
	.wrap {
		padding: 0 20px;
	}

	nav.links {
		position: fixed;
		top: 76px;
		left: 0;
		right: 0;
		background: var(--cream);
		border-bottom: 1px solid var(--line);
		flex-direction: column;
		gap: 0;
		padding: 8px 20px 16px;
		display: none;
	}

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

	nav.links a {
		padding: 12px 0;
		border-bottom: 1px solid var(--line);
	}

	.nav-toggle {
		display: block;
	}

	.cta-small {
		display: none;
	}

	.hero h1 {
		font-size: 30px;
	}

	.avatar-frame {
		width: 180px;
		height: 180px;
	}

	.hero-blob-1,
	.hero-blob-2 {
		opacity: .5;
	}

	.stats-row {
		grid-template-columns: repeat(2, 1fr);
	}

	section {
		padding: 48px 0;
	}

	section.alt {
		margin: 0 12px;
		border-radius: 20px;
	}

	.footer-top {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.footer-brand p {
		max-width: none;
		margin-left: auto;
		margin-right: auto;
	}

	.footer-links {
		align-items: center;
	}
}
