/* ============================================
   COLOR SYSTEM
   ============================================ */

:root {
	--near-black: #1a1a1a;
	--light-black: #4d4d4d;
	--light-gray: #f5f5f5;
	--light-med-gray: #e5e5e5;
	--med-gray: #d4d4d4;
	--med-dark-gray: #bbbbbb;
	--dark-gray: #767676;
	--page-white: #f5f5f5;
}

/* ============================================
   RESET / BASE
   ============================================ */

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: Inter, sans-serif;
	color: var(--near-black);
	background-color: var(--page-white);
}

body > * {
	min-width: 0;
}

a {
	color: inherit;
}

img,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

iframe {
	max-width: 100%;
	display: block;
	border: none;
}

/* ============================================
   PAGE ENTRANCE (same on every page) —
   top-level sections fade in and settle down,
   staggered top to bottom
   ============================================ */

@keyframes page-enter {
	from {
		opacity: 0;
		transform: translateY(-0.75rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.site-nav,
.hero,
.header-image,
.about-content,
.play-content,
.coming-soon,
.project-grid,
.page-wrapper,
.site-footer {
	animation: page-enter 0.8s ease both;
}

.site-nav {
	animation-delay: 0s;
}

.hero,
.header-image,
.about-content,
.play-content,
.coming-soon {
	animation-delay: 0.1s;
}

.project-grid,
.page-wrapper {
	animation-delay: 0.2s;
}

.site-footer {
	animation-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
	.site-nav,
	.hero,
	.header-image,
	.about-content,
	.play-content,
	.coming-soon,
	.project-grid,
	.page-wrapper,
	.site-footer {
		animation: none;
	}
}

/* ============================================
   SITE NAV (same on every page)
   ============================================ */

.site-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 1.25rem 4rem;
	background-color: rgba(245, 245, 245, 0.75);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: var(--dark-gray);
}

.site-nav-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
}

.site-nav .nav-name,
.site-nav .nav-links a {
	justify-self: start;
	font-family: "DM Mono", monospace;
	font-size: 0.8rem;
	font-weight: 300;
	line-height: 1.5;
	text-transform: uppercase;
	text-decoration: none;
	color: inherit;
}

.site-nav .nav-links {
	justify-self: center;
	display: flex;
	gap: 2.5rem;
}

.site-nav .nav-socials {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.site-nav .nav-socials svg {
	width: 1.1rem;
	height: 1.1rem;
	display: block;
}

.site-nav a:hover {
	color: var(--near-black);
}

/* ============================================
   SITE FOOTER (same on every page)
   ============================================ */

.site-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	padding: 2.5rem 4rem 1.5rem;
	background-color: transparent;
	border-top: 1px solid var(--med-gray);
	margin-top: 4rem;
	color: var(--light-black);
}

.site-footer .footer-col {
	display: flex;
	flex-direction: column;
}

.site-footer .footer-col:nth-child(2) {
	margin-left: auto;
}

.site-footer .footer-col:nth-child(3) {
	margin-left: 1rem;
}

.site-footer .heading-sentence {
	font-family: "Libre Franklin", sans-serif;
	font-weight: 600;
	font-size: 1.6rem;
	color: var(--light-black);
	margin-bottom: 0.25rem;
}

.site-footer .footer-col a:hover {
	color: var(--near-black);
}

.site-footer .footer-col a {
	display: block;
	font-family: "DM Mono", monospace;
	font-size: 0.8rem;
	font-weight: 300;
	line-height: 1.5;
	text-transform: uppercase;
	text-decoration: none;
	margin-bottom: 0.75rem;
	color: var(--dark-gray);
}

.site-footer .footer-col-title {
	margin-top: 0;
	margin-bottom: 0.75rem;
	color: var(--near-black);
}

.site-footer .footer-copyright {
	flex-basis: 100%;
	text-align: center;
	margin-top: 0;
	color: var(--dark-gray);
}

/* ============================================
   HOMEPAGE — PROJECT GRID
   ============================================ */

.hero {
	padding: 3rem 4rem 7rem;
	text-align: center;
}

.hero h1 {
	font-family: "Anton", sans-serif;
	font-size: 4rem;
	font-weight: 400;
	color: var(--near-black);
	margin: 0;
}

.hero p {
	margin: 0.75rem 0 0;
}

.hero .section-label {
	color: var(--light-black);
	margin: 0;
}

.project-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 2rem;
	row-gap: 4rem;
	padding: 0 4rem 3rem;
}

.project-card {
	text-decoration: none;
	color: inherit;
	display: block;
	transition: transform 0.2s ease;
}

.project-card:hover {
	transform: scale(0.97);
}

.project-card img {
	width: 95%;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1rem;
	border-radius: 1rem;
}

.project-card h2,
.project-card .project-caption {
	max-width: 95%;
	margin-left: auto;
	margin-right: auto;
}

.project-card h2 {
	font-family: "Libre Franklin", sans-serif;
	font-weight: 600;
	font-size: 1.5rem;
	margin-top: 0;
	margin-bottom: 0.5rem;
}

.project-card .project-caption {
	font-family: Inter;
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.5;
	color: var(--light-black);
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	max-width: 95%;
	margin-top: 0.75rem;
	margin-left: auto;
	margin-right: auto;
}

.tag {
	font-family: "DM Mono", monospace;
	font-size: 0.8rem;
	font-weight: 300;
	line-height: 1.5;
	color: var(--light-black);
	text-transform: uppercase;
	background-color: var(--light-med-gray);
	border-radius: 0.25rem;
	padding: 0.25rem 0.5rem;
	display: inline-block;
}

.email-toast {
	font-family: "DM Mono", monospace;
	font-size: 0.8rem;
	font-weight: 300;
	line-height: 1.5;
	color: var(--light-black);
	text-transform: uppercase;
	background-color: var(--light-med-gray);
	border-radius: 0.25rem;
	padding: 0.25rem 0.5rem;
	position: fixed;
	left: 50%;
	bottom: 2rem;
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	white-space: nowrap;
	transform: translate(-50%, 0.5rem);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.email-toast.show {
	opacity: 1;
	transform: translate(-50%, 0);
}

@media (max-width: 60rem) {
	.project-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   COMING SOON PAGE
   ============================================ */

.coming-soon {
	flex: 1;
	min-height: 40vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem;
}

.coming-soon .section-label {
	margin: 0;
}

/* ============================================
   CASE STUDY PAGE
   ============================================ */

.page-wrapper {
	padding: 3rem;
}

.header-image img {
	width: 100%;
	aspect-ratio: 7 / 3;
	object-fit: cover;
	display: block;
}

.project-layout {
	display: flex;
	position: relative;
}

.sidebar {
	width: 8rem;
	flex-shrink: 0;
	position: sticky;
	top: 6rem;
	align-self: flex-start;
}

.sidebar-track {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background-color: var(--med-gray);
}

.sidebar-indicator {
	position: absolute;
	left: 0;
	width: 2px;
	background-color: var(--near-black);
	transition: top 0.2s ease, height 0.2s ease;
}

.sidebar a {
	display: block;
	margin-bottom: 0.5rem;
	text-decoration: none;
	padding-left: 0.75rem;
	transition: color 0.15s ease;
	font-family: "DM Mono", monospace;
	font-size: 0.8rem;
	font-weight: 300;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--dark-gray);
}

.sidebar a:hover,
.sidebar a.active {
	color: var(--near-black);
}

.content {
	max-width: 60rem;
	margin-left: 10rem;
	position: relative;
}

.content > div {
	margin-bottom: 3rem;
}

.content > div:not(:first-child) {
	border-top: 1px solid var(--med-gray);
	padding-top: 2rem;
}

/* --- Typography --- */

.project-title {
	font-family: "Libre Franklin", sans-serif;
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.1;
	color: var(--near-black);
	margin-bottom: 1rem;
	display: block;
}

.heading-sentence {
	font-family: "Libre Franklin", sans-serif;
	font-size: 1.4rem;
	font-weight: 500;
	line-height: 1.25;
	color: var(--light-black);
	margin-bottom: 1rem;
	display: block;
}

.section-label {
	font-family: "DM Mono", monospace;
	font-size: 0.8rem;
	font-weight: 300;
	line-height: 1.5;
	color: var(--near-black);
	text-transform: uppercase;
	margin-top: 3rem;
	margin-bottom: 1rem;
	display: block;
}

.content > div > *:first-child .section-label:first-child {
	margin-top: 0;
}

.content .section-label {
	color: var(--light-black);
}

.project-citizen-ultra911 .section-label:not(.footer-col-title):not(.footer-copyright) {
	color: #0826EC;
}

.project-nasa-es .section-label:not(.footer-col-title):not(.footer-copyright) {
	color: #6B26AF;
}

.project-senior-sayang .section-label:not(.footer-col-title):not(.footer-copyright) {
	color: #0b8459;
}

.project-quera-quantum .section-label:not(.footer-col-title):not(.footer-copyright) {
	color: #6336FE;
}

.project-quera-quantum .timeline-item {
	grid-template-columns: 8rem 1.5rem 1fr;
}

.project-quera-quantum .timeline-date {
	text-align: left;
}

.meta-row + .meta-label .section-label {
	margin-top: 0;
}

.body {
	font-family: Inter;
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.5;
	color: var(--light-black);
	margin-bottom: 1.25rem;
	display: block;
}

.body strong {
	font-weight: 600;
}

/* --- Meta row --- */

.meta-row {
	display: flex;
	justify-content: space-between;
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
	flex-wrap: wrap;
	gap: 3rem;
	margin-bottom: 2rem;
	position: relative;
	border-bottom: 1px solid var(--med-gray);
}

.meta-col {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
	min-width: 10rem;
}

.meta-value .body {
	margin-bottom: 0;
}

/* --- Two-column section (Overview / What I Did) --- */

.two-col-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

/* --- Base tag reset --- */

.content p,
.content h1,
.content h2,
.content ul,
.content ol {
	margin: 0;
}

.content img {
	margin-bottom: 2rem;
}

.content img.image-compact {
	width: 70%;
	margin-left: auto;
	margin-right: auto;
}

.content img.image-half {
	width: 50%;
	margin-left: auto;
	margin-right: auto;
}

.content img.image-75 {
	width: 75%;
	margin-left: auto;
	margin-right: auto;
}

.content .image-stack.image-half {
	width: 50%;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 2rem;
}

.content .image-stack img {
	width: 100%;
	margin-bottom: 0;
}

.content p.spaced {
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}

.content ul,
.content ol {
	padding-left: 1.25rem;
}

.content ol.quote-indent {
	margin-left: 3rem;
	padding-left: 1.5rem;
}

.media-placeholder {
	aspect-ratio: 16 / 9;
	background-color: var(--light-gray);
	border: 1px solid var(--med-gray);
	border-radius: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 2rem;
}

.media-placeholder .body {
	margin-bottom: 0;
}

/* --- Dark pattern columns (Research section) --- */

column-set {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	width: 100%;
	box-sizing: border-box;
	max-width: 100%;
}

column-unit {
	min-width: 0;
	width: 100%;
}

column-set[cols="2"] {
	grid-template-columns: repeat(2, 1fr);
}

column-set[cols="4"] {
	grid-template-columns: repeat(4, 1fr);
}

column-set[cols="1-2"] {
	grid-template-columns: 1fr 2fr;
}

column-set[cols="2-1"] {
	grid-template-columns: 2fr 1fr;
}

column-set.align-center {
	align-items: center;
}

column-set.testing-results-grid {
	margin-top: 2rem;
	row-gap: 1rem;
}

column-unit .body,
column-unit .heading-sentence {
	overflow-wrap: break-word;
	word-break: break-word;
}

/* --- Scroll to top button --- */

.scroll-top-btn {
	position: fixed;
	right: 2rem;
	bottom: 2rem;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background-color: var(--light-gray);
	border: 1px solid var(--dark-gray);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 100;
}

.scroll-top-btn:hover {
	border-color: var(--near-black);
}

.scroll-top-btn:hover::before {
	border-top-color: var(--near-black);
	border-right-color: var(--near-black);
}

.scroll-top-btn::before {
	content: '';
	display: block;
	width: 0.4rem;
	height: 0.4rem;
	border-top: 2px solid var(--light-black);
	border-right: 2px solid var(--light-black);
	transform: rotate(-45deg);
	margin-top: 0.1rem;
}

/* --- Info box (e.g. "Two problems, not one." / "Where I drew the line.") --- */

.info-box {
	background-color: var(--light-gray);
	border: 1px solid var(--med-gray);
	border-radius: 0.5rem;
	padding: 1.25rem;
	margin-bottom: 1.25rem;
}

.info-box > *:last-child {
	margin-bottom: 0;
}

/* --- Final Design Highlight videos (autoplay/loop, sized like GIFs) --- */

.highlight-video {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 1.25rem;
}

.highlight-video-row {
	display: flex;
	align-items: flex-start;
	gap: 2rem;
}

.highlight-video-row > div {
	min-width: 0;
	flex: 0 1 auto;
}

.highlight-video-row .highlight-video {
	width: auto;
	max-width: 100%;
}

.media-caption {
	font-family: Inter;
	font-size: 0.75rem;
	font-weight: 300;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--light-black);
	text-align: right;
	display: block;
	margin-bottom: 1rem;
}

.media-caption.align-center {
	text-align: center;
}

/* --- Image carousel (centered active slide, peeking neighbors, looping) --- */

.image-carousel {
	margin-bottom: 2rem;
}

.carousel-viewport {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 0.5rem;
	overflow: hidden;
}

.carousel-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0 4.5rem;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	z-index: 1;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.carousel-slide img,
.carousel-slide video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin-bottom: 0;
}

.carousel-slide[data-offset="0"] {
	opacity: 1;
	z-index: 2;
	pointer-events: auto;
}

.carousel-slide[data-offset="0"] img {
	cursor: zoom-in;
}

.carousel-arrow {
	position: absolute;
	top: 50%;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background-color: var(--light-gray);
	border: 1px solid var(--dark-gray);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 4;
	transform: translateY(-50%);
	padding: 0;
}

.carousel-arrow:hover {
	border-color: var(--near-black);
}

.carousel-arrow::before {
	content: '';
	display: block;
	width: 0.6rem;
	height: 0.6rem;
	border-top: 2px solid var(--light-black);
	border-right: 2px solid var(--light-black);
}

.carousel-arrow:hover::before {
	border-top-color: var(--near-black);
	border-right-color: var(--near-black);
}

.carousel-arrow--prev {
	left: 1rem;
}

.carousel-arrow--prev::before {
	transform: rotate(225deg);
	margin-left: 0.15rem;
}

.carousel-arrow--next {
	right: 1rem;
}

.carousel-arrow--next::before {
	transform: rotate(45deg);
	margin-right: 0.15rem;
}

.carousel-dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1rem;
}

.carousel-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background-color: var(--med-gray);
	border: none;
	padding: 0;
	cursor: pointer;
}

.carousel-dot.active {
	background-color: var(--near-black);
}

/* --- Framed carousels (square-image pieces): wider frame holds a smaller, centered image so
   the arrows have room on the sides without the component overflowing --- */

.framed-carousel .carousel-frame {
	position: relative;
	width: 100%;
}

.framed-carousel .carousel-viewport {
	width: min(34rem, calc(100vh - 8rem), calc(100% - 8rem));
	margin: 0 auto;
	border-radius: 0;
}

.framed-carousel .carousel-slide {
	padding: 0;
}

.framed-carousel .carousel-arrow--prev {
	left: 0;
}

.framed-carousel .carousel-arrow--next {
	right: 0;
}

/* --- Lightbox-triggering images outside the carousel --- */

.lightbox-img {
	cursor: zoom-in;
}

/* --- Lightbox (click a carousel image to enlarge) --- */

.lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background-color: rgba(245, 245, 245, 0.75);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	align-items: center;
	justify-content: center;
	overflow: hidden;
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.lightbox.open {
	display: flex;
}

.lightbox.open-visible {
	opacity: 1;
}

.lightbox-pop {
	display: flex;
	transform: scale(0.85);
	transition: transform 0.25s ease;
}

.lightbox.open-visible .lightbox-pop {
	transform: scale(1);
}

.lightbox-image {
	max-width: 80vw;
	max-height: 80vh;
	width: auto;
	height: auto;
	object-fit: contain;
	margin-bottom: 0;
	cursor: zoom-in;
	transform-origin: 0 0;
	touch-action: none;
	user-select: none;
}

.lightbox-image.zoomed {
	cursor: zoom-out;
}

.lightbox-image.panning {
	cursor: grabbing;
}

.lightbox-close {
	position: fixed;
	top: 2rem;
	right: 2rem;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background-color: var(--light-gray);
	border: 1px solid var(--dark-gray);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	z-index: 10;
}

.lightbox-close:hover {
	border-color: var(--near-black);
}

.lightbox-close::before,
.lightbox-close::after {
	content: '';
	position: absolute;
	width: 0.65rem;
	height: 2px;
	background-color: var(--light-black);
}

.lightbox-close:hover::before,
.lightbox-close:hover::after {
	background-color: var(--near-black);
}

.lightbox-close::before {
	transform: rotate(45deg);
}

.lightbox-close::after {
	transform: rotate(-45deg);
}

/* --- Context image (The Context, NASA case study) --- */

.context-media {
	gap: 1.5rem;
	align-items: start;
}

.context-media img {
	width: 100%;
	margin-left: auto;
}

.logo-img {
	width: 3rem;
	height: 3rem;
	object-fit: contain;
	margin: 0 auto;
}

/* --- Section changes diagram (Design Exploration, NASA case study) --- */

.section-changes-image {
	width: 100%;
	max-width: 30rem;
	margin-left: auto;
	margin-right: auto;
}

/* --- Priority matrix (Design Exploration, NASA case study) --- */

.matrix-image {
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

/* --- Tight list (Design Goal, NASA case study) --- */

.tight-list li {
	margin-bottom: 0.5rem;
}

.tight-list li:last-child {
	margin-bottom: 0;
}

.tight-list .body,
.tight-list .heading-sentence {
	margin-bottom: 0;
}

/* --- Vertical timeline (Project Timeline) --- */

.timeline {
	margin-bottom: 2rem;
}

.timeline-item {
	display: grid;
	grid-template-columns: 6rem 1.5rem 1fr;
	column-gap: 1rem;
}

.timeline-item:not(:last-child) {
	padding-bottom: 1.5rem;
}

.timeline-date {
	text-align: right;
}

.timeline-date .body {
	font-family: "DM Mono", monospace;
	font-size: 0.8rem;
	font-weight: 300;
	margin-bottom: 0;
}

.timeline-line {
	position: relative;
	display: flex;
	justify-content: center;
}

.timeline-line::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: -1.5rem;
	width: 2px;
	background-color: var(--med-gray);
}

.timeline-item:last-child .timeline-line::before {
	bottom: 50%;
}

.timeline-dot {
	position: relative;
	z-index: 1;
	width: 0.5rem;
	height: 0.5rem;
	margin-top: 0.35rem;
	border-radius: 50%;
	background-color: var(--med-gray);
}

.timeline-desc .body {
	margin-bottom: 0;
}

/* --- Content table (competitive analysis) --- */

.table-frame {
	margin-bottom: 2rem;
	max-width: 100%;
	overflow-x: auto;
	scrollbar-color: var(--med-dark-gray) var(--light-med-gray);
	scrollbar-width: thin;
}

.table-frame::-webkit-scrollbar {
	height: 0.5rem;
}

.table-frame::-webkit-scrollbar-track {
	background: var(--light-med-gray);
	border-radius: 0.25rem;
}

.table-frame::-webkit-scrollbar-thumb {
	background: var(--med-dark-gray);
	border-radius: 0.25rem;
}

.table-frame::-webkit-scrollbar-thumb:hover {
	background: var(--dark-gray);
}

.content table {
	width: 100%;
	border-collapse: collapse;
}

.content table th,
.content table td {
	text-align: left;
	vertical-align: top;
	padding: 1.25rem 1rem;
	border-bottom: 1px solid var(--med-gray);
	border-right: 1px solid var(--med-gray);
}

.content table th:last-child,
.content table td:last-child {
	border-right: none;
}

.content table tbody tr:last-child td {
	border-bottom: none;
}

.content table .section-label {
	margin-top: 0;
}

/* --- Responsive --- */

@media (max-width: 60rem) {
	.site-nav {
		padding: 1.25rem 1.5rem;
	}
	.site-nav-inner {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.site-nav .nav-name {
		display: none;
	}
	.hero {
		padding: 2.5rem 1.5rem 4rem;
	}
	.hero h1 {
		font-size: 3rem;
	}
	.project-grid {
		padding: 0 1.5rem 2.5rem;
		row-gap: 3rem;
	}
	.page-wrapper {
		padding: 1.5rem;
	}
	.site-footer {
		padding: 2rem 1.5rem 1.5rem;
	}
	.project-layout {
		flex-direction: column;
	}
	.sidebar {
		display: none;
	}
	.content {
		margin-left: 0;
		max-width: 100%;
	}
	.two-col-section {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	column-set,
	column-set[cols="2"],
	column-set[cols="4"],
	column-set[cols="1-2"],
	column-set[cols="2-1"] {
		grid-template-columns: 1fr;
	}
	.highlight-video-row {
		flex-direction: column;
	}
	.highlight-video-row .highlight-video {
		width: 100%;
		height: auto !important;
	}
	.content img.mobile-full-width {
		width: 100%;
	}
	.table-frame {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.content table {
		width: max-content;
		min-width: 100%;
		font-size: 0.75rem;
	}
	.content table th,
	.content table td {
		padding: 0.75rem 0.5rem;
		min-width: 7rem;
	}
	.table-frame .logo-img {
		width: 2rem;
		height: 2rem;
	}
	.carousel-slide {
		padding: 0 3.5rem;
	}
	.carousel-arrow {
		width: 2rem;
		height: 2rem;
	}
	.carousel-arrow--prev {
		left: 0.5rem;
	}
	.carousel-arrow--next {
		right: 0.5rem;
	}
	.site-footer {
		text-align: left;
	}
	.site-footer .footer-col:first-child {
		order: 0;
		flex-basis: 100%;
	}
	.site-footer .footer-copyright {
		order: 1;
		text-align: left;
		margin-top: -1.5rem;
	}
	.site-footer .footer-col:nth-child(2),
	.site-footer .footer-col:nth-child(3) {
		order: 2;
		flex-basis: calc(50% - 1rem);
		margin-left: 0;
	}
}

@media (max-width: 30rem) {
	.site-nav-inner {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.site-nav .nav-name {
		display: none;
	}
	.site-nav .nav-links {
		gap: 1.25rem;
	}
	.hero h1 {
		font-size: 2.25rem;
	}
	.meta-row {
		gap: 1rem;
	}
	.meta-col {
		min-width: 100%;
	}
	.timeline-item,
	.project-quera-quantum .timeline-item {
		grid-template-columns: 4.5rem 1.5rem 1fr;
		column-gap: 0.75rem;
	}
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-content {
	padding: 3rem 4rem;
}

.about-heading {
	font-family: "Anton", sans-serif;
	font-size: 3rem;
	font-weight: 400;
	text-transform: uppercase;
	margin-bottom: 2rem;
}

.about-content .two-col-section {
	grid-template-columns: 2fr 1fr;
	gap: 5rem;
}

@media (min-width: 60.0625rem) {
	.about-intro .about-bio {
		order: 1;
	}
	.about-intro .polaroid {
		order: 2;
	}
}

.about-content .two-col-section > div {
	min-width: 0;
}

.about-content .two-col-section.values-section {
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

.profile-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.profile-meta-item {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--dark-gray);
}

.profile-meta-item .body {
	font-family: "DM Mono", monospace;
	font-size: 0.8rem;
	font-weight: 300;
	line-height: 1.5;
	text-transform: uppercase;
	margin-bottom: 0;
}

.philosophy-item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.75rem;
}

.philosophy-item svg {
	width: 1.1rem;
	height: 1.1rem;
	flex-shrink: 0;
	color: var(--dark-gray);
}

.philosophy-item .body {
	margin-bottom: 0;
}

.polaroid {
	position: relative;
	width: 90%;
}

.about-headshot {
	box-sizing: content-box;
	width: calc(100% - 2rem);
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: 40% center;
	border: 1rem solid #fff;
	border-bottom-width: 4rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.polaroid-caption {
	position: absolute;
	left: 1.75rem;
	right: 1.75rem;
	bottom: 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.profile-meta-item svg {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}

@media (max-width: 60rem) {
	.about-content {
		padding: 2rem 1.5rem;
		display: flex;
		flex-direction: column;
	}
	.about-content .two-col-section,
	.about-content .two-col-section.values-section {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.about-content .values-section .section-label {
		margin-top: 0;
	}
	.about-intro {
		display: contents;
	}
	.polaroid {
		order: 1;
		width: 100%;
		max-width: 13rem;
		margin: 0 auto;
	}
	.about-heading {
		order: 2;
		margin-top: 2.5rem;
		margin-bottom: 0.5rem;
	}
	.about-bio {
		order: 3;
	}
	.values-section {
		order: 4;
	}
}

/* ============================================
   PLAY PAGE
   ============================================ */

.play-content {
	padding: 3rem 4rem;
}

.play-layout {
	display: flex;
	gap: 4rem;
}

.filter-sidebar {
	width: 8rem;
	flex-shrink: 0;
	position: sticky;
	top: 6rem;
	align-self: flex-start;
}

.filter-sidebar .section-label {
	margin-top: 0;
}

.filter-link {
	display: block;
	margin-bottom: 0.5rem;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.15s ease;
	font-family: "DM Mono", monospace;
	font-size: 0.8rem;
	font-weight: 300;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--dark-gray);
}

.filter-link:hover {
	color: var(--near-black);
}

.filter-link.active {
	color: var(--near-black);
	font-weight: 600;
}

.play-grid {
	flex: 1;
	min-width: 0;
	display: flex;
	gap: 1.5rem;
}

.play-grid-col {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	flex: 1;
	min-width: 0;
}

.play-item[hidden] {
	display: none;
}

.play-item .media-placeholder {
	width: 100%;
	margin-bottom: 0;
}

.play-card {
	position: relative;
	cursor: pointer;
}

.play-media {
	position: relative;
	border-radius: 0.5rem;
	overflow: hidden;
}

.play-media > img:not(:first-child),
.play-media > .media-placeholder:not(:first-child),
.play-media > video:not(:first-child),
.play-media > iframe:not(:first-child) {
	display: none;
}

.play-media > iframe {
	pointer-events: none;
}

.play-cta {
	position: absolute;
	left: 1.25rem;
	right: 1.25rem;
	bottom: 1.25rem;
	text-align: right;
	font-family: "DM Mono", monospace;
	font-size: 0.75rem;
	font-weight: 300;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--near-black);
	margin-bottom: 0;
	opacity: 1;
	pointer-events: none;
}

.play-cta svg {
	display: inline-block;
	width: 0.75rem;
	height: 0.75rem;
	vertical-align: -1px;
	margin-left: 0.25rem;
	transition: transform 0.25s ease;
}

/* the arrow nudges up-right once the hover card has faded in */
.play-card:hover .play-cta svg {
	transform: translate(2px, -2px);
	transition-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
	.play-cta svg {
		transition: none;
	}
}

.play-meta {
	font-family: "DM Mono", monospace;
	font-size: 0.8rem;
	font-weight: 300;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--dark-gray);
	display: block;
}

.play-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.25rem;
	padding: 1.25rem;
	background-color: rgba(245, 245, 245, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 0 0 1.5px var(--med-gray);
	border-radius: 0.5rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	transform: translateZ(0);
	will-change: opacity;
	isolation: isolate;
}

.play-overlay .body {
	margin-bottom: 0;
	color: var(--near-black);
}

.play-overlay .play-meta {
	color: var(--near-black);
}

.play-overlay strong,
.play-lightbox-title {
	font-family: "Newsreader", serif;
	font-size: 1.4rem;
	font-weight: 400;
	font-style: italic;
}

.play-card:hover .play-overlay {
	opacity: 1;
}

.play-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background-color: rgba(245, 245, 245, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.play-lightbox.open {
	display: flex;
}

.play-lightbox.open-visible {
	opacity: 1;
}

.play-lightbox.open-visible .play-lightbox-media {
	transform: scale(1);
}

.play-lightbox-text {
	position: fixed;
	top: 3rem;
	left: 3rem;
	max-width: min(20rem, calc((100vw - 60rem) / 2 - 4rem));
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.play-lightbox-text .body {
	margin-bottom: 0;
}

.play-lightbox-media {
	display: flex;
	align-items: center;
	justify-content: center;
	transform: scale(0.85);
	transition: transform 0.25s ease;
}

.play-lightbox-media.multi {
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 1.5rem;
	max-height: calc(100vh - 6rem);
	overflow-y: auto;
	padding: 3rem 0;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.play-lightbox-media.multi::-webkit-scrollbar {
	display: none;
}

.play-lightbox-media.multi img,
.play-lightbox-media.multi video,
.play-lightbox-media.multi iframe {
	width: auto;
	max-width: min(40rem, calc(100vw - 4rem));
	max-height: none;
}

.play-lightbox-media.multi img.play-media-wide,
.play-lightbox-media.multi video.play-media-wide {
	max-width: min(50rem, calc(100vw - 4rem));
}

.play-lightbox-media.multi img.play-media-cover,
.play-lightbox-media.multi video.play-media-cover {
	max-width: min(22rem, calc(100vw - 4rem));
}

.play-lightbox-media.multi img.play-media-fit-height,
.play-lightbox-media.multi video.play-media-fit-height {
	width: min(34rem, calc((100vh - 8rem) / (var(--tallest-ratio, 1.25))));
	max-width: calc(100vw - 4rem);
}

.play-lightbox-media.multi .media-placeholder {
	width: min(24rem, calc(100vw - 4rem));
	max-height: none;
	flex-shrink: 0;
}

.play-structured {
	display: none;
}

.play-lightbox-media.multi .play-structured {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	width: 100%;
}

.play-structured-label {
	text-align: center;
	margin: 0;
}

.play-structured-row {
	display: flex;
	gap: 1.5rem;
	justify-content: center;
	align-items: flex-start;
	flex-wrap: wrap;
}

.play-lightbox-media.multi .play-structured-row img,
.play-lightbox-media.multi .play-structured-row video,
.play-lightbox-media.multi .play-structured-row iframe {
	max-width: min(50rem, calc(100vw - 4rem));
}

.play-lightbox-media.multi .play-structured-row.pair img,
.play-lightbox-media.multi .play-structured-row.pair video,
.play-lightbox-media.multi .play-structured-row.pair iframe {
	max-width: min(26rem, calc(50vw - 3rem));
}

.play-lightbox-media.multi .play-structured.compact .play-structured-row img,
.play-lightbox-media.multi .play-structured.compact .play-structured-row video,
.play-lightbox-media.multi .play-structured.compact .play-structured-row iframe {
	max-height: calc(100vh - 13rem);
}

.play-lightbox-media.multi .carousel-slide img,
.play-lightbox-media.multi .carousel-slide video {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
}

.play-lightbox-media img,
.play-lightbox-media video,
.play-lightbox-media iframe {
	max-width: 60rem;
	max-height: calc(100vh - 8rem);
	width: auto;
	height: auto;
	object-fit: contain;
	margin-bottom: 0;
	border-radius: 0;
}

.play-lightbox-media .media-placeholder {
	width: min(60rem, calc((100vh - 8rem) * var(--ar, 1)));
	max-height: calc(100vh - 8rem);
	margin-bottom: 0;
}

/* ============================================
   PLAY PAGE — MOBILE (filter bar + flip cards)
   ============================================ */

@media (max-width: 60rem) {
	.play-content {
		padding: 2rem 1.5rem;
	}

	.play-layout {
		flex-direction: column;
		gap: 2rem;
	}

	.filter-sidebar {
		width: 100%;
		position: static;
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem 1.25rem;
	}

	.filter-sidebar .section-label {
		flex-basis: 100%;
		margin-bottom: 0;
	}

	.filter-link {
		margin-bottom: 0;
	}

	.play-grid {
		flex-direction: column;
	}

	/* tap-to-flip: front (.play-media) and back (.play-overlay)
	   already share the same box, so rotating each is enough —
	   no extra wrapper markup needed */
	.play-card {
		perspective: 1200px;
	}

	.play-media {
		backface-visibility: hidden;
		-webkit-backface-visibility: hidden;
		transform: rotateY(0deg);
		transition: transform 0.5s ease;
	}

	.play-overlay {
		backface-visibility: hidden;
		-webkit-backface-visibility: hidden;
		transform: rotateY(180deg);
		transition: transform 0.5s ease;
		opacity: 1;
	}

	.play-cta {
		pointer-events: none;
	}

	.play-card.flipped .play-media {
		transform: rotateY(180deg);
	}

	.play-card.flipped .play-overlay {
		transform: rotateY(0deg);
	}

	.play-card.flipped .play-cta {
		pointer-events: auto;
	}

	.play-lightbox-text {
		display: none;
	}

	.play-lightbox-media.multi {
		max-height: calc(100vh - 9rem);
	}
}
/* --- Play slideshow covers (.play-item[data-slideshow]) --- */

.play-slideshow {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.play-slideshow-track {
	display: flex;
	height: 100%;
}

.play-slideshow-track img {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --- Caption paragraph inside a structured piece (e.g. Cake Decorating),
   lined up with the edges of a framed 4:5 carousel below it --- */

.play-structured-caption {
	width: min(34rem, calc((100vh - 8rem) * 0.8), calc(min(42rem, 100vw - 4rem) - 8rem));
	margin: 0;
	color: var(--near-black);
}

@media (max-width: 60rem) {
	.play-structured-caption {
		width: calc(100vw - 3rem);
	}
}
