*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background: #EFEDE8;
	background: #f7f7f5;
	background: #fcf6ef;
	font-family: 'Source Sans 3', sans-serif;
	color: rgb(43, 24, 10);
	background-image: url("images/i/cstrip.jpg");
	background-size: 100% 4px;
	background-position: 50% 0;
	background-repeat: no-repeat;
}

/* —— Header —— */

#whome { color: rgb(74, 47, 20);	}

#h {
	font-family: 'Source Sans 3', sans-serif;
	background: rgba(255, 255, 255, 0.2);
	padding: 32px;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 1px;
	display: flex;
	justify-content: space-between;
	gap: 32px;
	border-bottom: 1px solid rgba(62, 47, 0, 0.1);
}

#h a {
	text-decoration: none;
	color: #111;
	line-height: 24px;
}

#h #n {
	font-weight: 800;
	font-size: 24px;
	letter-spacing: 0;
}

#nli {
	padding: 16px 0;
	border-top: 1px solid rgb(228, 213, 204);
	border-bottom: 1px solid rgb(228, 213, 204);
}

#nli.nli-stuck {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	width: 100%;
	padding: 16px 10vw;
	border-top: none;
	border-bottom: 1px solid rgba(228, 213, 204, 0.6);
	background: rgba(252, 246, 239, 0.7);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	animation: nliSlideIn 0.3s ease forwards;
}

@keyframes nliSlideIn {
	from {
		transform: translateY(-100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

#nli a {
	display: inline-block;
	color: #673d0e;
	text-decoration: none;
	position: relative;
}

#nli .nsp {
	margin-left: 8px;
	margin-right: 8px;
}

.wma {
	width: 80vw;
	margin-left: auto;
	margin-right: auto;
}

#oint {
	width: 80vw;
	max-width: 720px;
	font-size: 18px;
	line-height: 32px;
}

.oic-trigger {
	font-family: "Fraunces", serif;
	cursor: pointer;
	text-decoration: none;
	text-decoration-style: dotted;
	text-underline-offset: 4px;
	padding: 4px 8px;
	background: rgba(50, 9, 9, 0.05);
	border-radius: 4px;
	transition: background 1s ease;
	margin-right: 0.2em;
}

.oic-trigger:hover {
	background: rgba(50, 9, 9, 0.1);
}

.oic-trigger.oic-spent {
	font-family: "Fraunces", serif;
	cursor: default;
	text-decoration: none;
	padding: 4px 8px;
	background: rgba(50, 9, 9, 0.01);
	border-radius: 4px;
	transition: background 1s ease;
}

.oic-chunk {
	display: none;
}

.oic-word {
	opacity: 0;
	transition: opacity 0.4s ease;
	display: inline;
}

.oic-media {
	/* opacity: 0;
	transition: opacity 0.4s ease; */
	display: inline;
	vertical-align: middle;
}

.oic-word.oic-visible,
.oic-media.oic-visible {
	opacity: 1;
}

/* ── Grid ── */

.highlights {
	padding: 0 24px;
}

#h-wi {
	background-image: url("images/i/samplecolo.png");
	background-size: cover;
	flex-direction: row;
	align-items: center;
	height: auto;
	min-height: 30vh;
	gap: 32px;
	position: relative;
}

#h-wi .highlight-t {
	flex: 1;
	align-self: flex-end;
	position: relative;
	z-index: 1;
}

#h-wi .highlight-media {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

#h-wi .highlight-media video {
	position: static;
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
}

#h-wi .highlight-media canvas {
	display: block;
	width: 100%;
	height: 100%;
}

@media (max-width: 768px) {
	#h-wi {
		flex-direction: column;
		height: auto;
		justify-content: flex-end;
	}

	#h-wi .highlight-t {
		flex: none;
	}
}

#h-gy {
	background-image: url("images/i/b4.jpg");
	background-size: cover;
	flex-direction: row;
	align-items: center;
	height: auto;
	min-height: 30vh;
	gap: 32px;
	position: relative;
}

#h-gy .highlight-t {
	flex: 1;
	align-self: flex-end;
	position: relative;
	z-index: 1;
}

#h-gy .highlight-media {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

#h-gy .highlight-media video {
	position: static;
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
}

#h-gy .highlight-media canvas {
	display: block;
	width: 100%;
	height: 100%;
}

@media (max-width: 768px) {
	#h-gy {
		flex-direction: column;
		height: auto;
		justify-content: flex-end;
	}

	#h-gy .highlight-t {
		align-self: stretch;
		flex: none;
	}

	#h-wi .h1plus3,
	#h-gy .h1plus3 {
		font-size: 28px;
		line-height: 1.1;
	}

	#h-wi .rarr,
	#h-gy .rarr {
		font-size: 24px;
	}

	#h-wi .highlight-subtitle,
	#h-gy .highlight-subtitle {
		font-size: 13px;
		line-height: 1.3;
	}
}

.highlight {
	display: flex;
	flex-direction: column-reverse;
	padding: 32px;
	width: 80vw;
	margin: 32px auto;
	margin-top: 24px;
	max-width: 1440px;
	height: 30vh;
	background: #fff;
	background: rgba(255, 255, 255, 0.4);
	background: rgba(240, 235, 224, 0.51);
	background: #f6f0e9;
	border-radius: 20px;
	text-decoration: none;
	color: #fff;
	color: #673d0e;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.highlight video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.highlight-t {
	position: relative;
	z-index: 1;
}

.rarr {
	font-size: 36px;
	margin-left: 8px;
	transition: margin 0.3s ease-out;
}

.highlight:hover .rarr {
	margin-left: 14px;
}

.highlight-subtitle {
	margin-left: 4px;
}

.projects-rows {
	display: flex;
	flex-direction: column;
	gap: 8vh;
	padding: 32px 0;
}

.project-row {
	padding: 0;
}

.project-row-header {
	width: 80vw;
	margin: 0 auto;
}

.year-tag {
	display: inline-block;
	background: rgb(239, 231, 221);
	color: rgb(43, 24, 10);
	border-radius: 4px;
	font-size: 14px;
	padding: 6px 12px;
	margin-bottom: 32px;
}

.project-row-title {
	font-weight: 300;
	margin: 0;
	padding: 0;
	text-align: left;
	color: rgb(148, 135, 124);
	color: #673d0e;
	text-wrap: pretty;
}

.project-row-subtitle {
	font-size: 20px;
	font-weight: 400;
	margin-top: 6px;
	color: #555;
	line-height: 1.5;
}

.project-row-subsubtitle {
	font-size: 16px;
	font-weight: 400;
	margin-top: 4px;
	color: #777;
	line-height: 1.5;
}

.project-row-scroll {
	display: flex;
	gap: 32px;
	overflow-x: auto;
	padding-left: 10vw;
	padding-right: 24px;
	padding-top: 20px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.project-row-scroll::-webkit-scrollbar {
	display: none;
}

.project-row-scroll > .project {
	scroll-snap-align: start;
	flex-shrink: 0;
}

.pyr {
	padding: 24px 24px 0px 24px;
	color: rgb(111, 107, 107);
}

@media (max-width: 768px) {
	.project-row-header {
		width: 90vw;
	}

	.project-row-scroll {
		gap: 16px;
		padding-left: 5vw;
		padding-right: 16px;
	}
}

/* ── Article ── */

.project {
	width: 400px;
	display: flex;
	flex-direction: column;
	background: #f6f0e9;
	border-radius: 24px;
	overflow: hidden;
}

@media (max-width: 768px) {
	.project {
		width: 100%;
	}
}

/* ── Media container ── */

.project-media {
	position: relative;
	width: 100%;
	aspect-ratio: 480 / 640;
	border-radius: 20px 20px 0 0;
	overflow: hidden;
	background: #D8D6D1;
	flex-shrink: 0;
}

.project-media-asset {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Badge ── */

.project-badge {
	position: absolute;
	bottom: 16px;
	left: 16px;
}

.project-badge img {
	height: 80px;
	display: block;
	object-fit: contain;
}

.project-badge img a {
	cursor: pointer;
}

/* ── Typography ── */

.project-title {
	font-family: 'Fraunces', serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.3;
	color: #111;
	text-wrap: pretty;
	padding: 24px 24px 0px 24px;
}

.project-subtitle {
	font-size: 18px;
	color: #555;
	line-height: 1.5;
	padding: 8px 24px 8px;
}

.project-subtitle:last-child {
	padding-bottom: 24px;
}

.project-subsubtitle {
	padding: 24px;
	padding-top: 4px;
	color: rgb(148, 135, 124);
}

/* ── Carousel track ── */

.carousel-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.carousel-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.45s ease;
	pointer-events: none;
}

.carousel-slide.active {
	opacity: 1;
	pointer-events: auto;
}

/* ── Carousel controls pill ── */

.carousel-controls {
	position: absolute;
	bottom: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 999px;
	background: rgba(50, 9, 9, 0.1);
	backdrop-filter: blur(20px) saturate(1.4);
	border: 1px solid rgba(56, 15, 15, 0.15);
	z-index: 10;
	white-space: nowrap;
}

.carousel-btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.8;
	transition: opacity 0.2s;
	flex-shrink: 0;
}

.carousel-btn:hover {
	opacity: 1;
}

.carousel-btn img {
	height: 40px;
	width: auto;
	display: block;
}

.carousel-dots {
	display: flex;
	align-items: center;
	gap: 6px;
}

.dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	transition: background 0.25s, transform 0.25s;
	flex-shrink: 0;
}

.dot.active {
	background: #fff;
	transform: scale(1.3);
}

footer {
	display: flex;
	min-height: 256px;
	justify-content: center;
	align-items: center;
	color: #c7b3b3;

}

#resume {
	overflow: hidden;
}

#resume img {
	width: 240px;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.04);
	border: 1px solid rgb(240, 232, 230);
	transform: translateY(24px);
	transition: all 0.3s cubic-bezier(0.55, 0.2, 0.52, 1.01);
}

#resume img:hover {
	transform: translateY(8px);
}