:root {
	color-scheme: light;
	--bg: #f7f3ed;
	--ink: #1f1b16;
	--muted: #6a5f54;
	--accent: #2a6f6d;
	--accent-soft: #d8e5e3;
	--panel: #fbf7f1;
	--panel-border: #e3d8cd;
	--shadow: 0 16px 40px rgba(31, 27, 22, 0.08);
	--max-width: 1260px;
	--content-width: 1040px;
	--radius: 18px;
}

* {
	box-sizing: border-box;
}

html {
	scrollbar-gutter: stable;
}

body {
	margin: 0;
	font-family: "DM Sans", "Segoe UI", sans-serif;
	color: var(--ink);
	background: linear-gradient(90deg, rgba(34, 61, 74, 0.05) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(0deg, rgba(34, 61, 74, 0.05) 1px, transparent 1px) 0 0 / 48px 48px, var(--bg);
	min-height: 100vh;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

.content {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 4vw 90px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 6vw;
	background: rgba(247, 243, 237, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--panel-border);
}

.brand {
	display: grid;
	gap: 6px;
}

.brand-mark {
	font-family: "Newsreader", "Times New Roman", serif;
	font-size: 1.6rem;
	letter-spacing: 0.02em;
}

.brand-sub {
	font-size: 0.92rem;
	color: var(--muted);
}

.site-nav {
	display: flex;
	gap: 18px;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: 40px;
	align-items: center;
	padding: 60px 0 50px;
	border-bottom: 1px solid var(--panel-border);
}

.hero-copy h1 {
	font-family: "Newsreader", "Times New Roman", serif;
	font-size: clamp(2.4rem, 2.2vw + 1.6rem, 3.4rem);
	line-height: 1.1;
	margin: 0 0 18px;
}

.hero-copy h1 span {
	color: var(--accent);
	display: block;
	margin-top: 12px;
}

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.22em;
	font-size: 0.72rem;
	color: var(--muted);
	margin-bottom: 16px;
}

.lede {
	font-size: 1.08rem;
	line-height: 1.7;
	color: var(--muted);
	max-width: var(--content-width);
}

.hero-actions {
	margin-top: 26px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.btn {
	background: var(--accent);
	color: #fff;
	padding: 12px 20px;
	border-radius: 999px;
	font-weight: 600;
	box-shadow: var(--shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 44px rgba(42, 111, 109, 0.25);
}

.btn.ghost {
	background: transparent;
	color: var(--accent);
	border: 1px solid var(--accent);
	box-shadow: none;
}

.hero-card {
	background: var(--accent-soft);
	border: 1px solid rgba(42, 111, 109, 0.3);
	border-radius: var(--radius);
	padding: 24px 26px;
	box-shadow: var(--shadow);
}

.card-title {
	font-weight: 600;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.8rem;
	color: #1c504e;
}

.card-list {
	margin: 0;
	padding-left: 18px;
	color: #244342;
	line-height: 1.6;
}

.section {
	padding: 54px 0;
	border-bottom: 1px solid var(--panel-border);
}

.section:last-of-type {
	border-bottom: none;
}

.section-title {
	display: grid;
	gap: 10px;
	margin-bottom: 26px;
	max-width: var(--content-width);
}

.section-title h2 {
	font-family: "Newsreader", "Times New Roman", serif;
	font-size: clamp(1.8rem, 1.2vw + 1.4rem, 2.5rem);
	margin: 0;
}

.section-title p {
	color: var(--muted);
	margin: 0;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 22px;
}

.longform-content {
	max-width: var(--content-width);
	display: grid;
	gap: 28px;
}

.longform-block {
	padding-bottom: 22px;
	border-bottom: 1px solid var(--panel-border);
}

.longform-block:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.longform-block h3 {
	margin: 0 0 12px;
	font-family: "Newsreader", "Times New Roman", serif;
	font-size: 1.28rem;
}

.longform-block p {
	margin: 0 0 12px;
	color: var(--muted);
	line-height: 1.7;
}

.longform-block p:last-child {
	margin-bottom: 0;
}

.longform-block code {
	background: #efe8e0;
	padding: 0 4px;
	border-radius: 6px;
	font-size: 0.92em;
}

.project-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin-top: 10px;
}

.project-card {
	background: #fff;
	border: 1px solid var(--panel-border);
	border-radius: 16px;
	padding: 20px 22px;
	box-shadow: var(--shadow);
	display: grid;
	gap: 10px;
}

.project-label {
	margin: 0;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
}

.project-card h3 {
	margin: 0;
	font-family: "Newsreader", "Times New Roman", serif;
	font-size: 1.18rem;
}

.project-card p {
	margin: 0;
	color: var(--muted);
	line-height: 1.6;
}

.ui-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	margin: 10px 0 12px;
	max-width: var(--content-width);
}

.ui-shot {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--panel-border);
	box-shadow: var(--shadow);
}

.ui-shot-button {
	display: block;
	width: 100%;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	text-align: inherit;
}

.ui-shot img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	background: linear-gradient(140deg, #f0dfd0, #efe9e3);
}

.ui-shot figcaption {
	padding: 12px 16px 16px;
	font-size: 0.95rem;
	color: var(--muted);
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.lightbox.is-open {
	opacity: 1;
	pointer-events: auto;
}

.lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 14, 10, 0.6);
	border: none;
	padding: 0;
	cursor: pointer;
}

.lightbox-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	background: transparent;
	z-index: 1;
}

.lightbox-content img {
	max-width: 92vw;
	max-height: 85vh;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 24px 60px rgba(18, 14, 10, 0.3);
}

.lightbox-content p {
	margin: 12px 0 0;
	color: var(--muted);
}

.lightbox-close {
	position: absolute;
	top: 18px;
	right: 18px;
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #1f1b16;
	background: #fff;
	border: 1px solid var(--panel-border);
	border-radius: 999px;
	padding: 8px 14px;
	box-shadow: var(--shadow);
}

.panel {
	background: var(--panel);
	border: 1px solid var(--panel-border);
	border-left: 4px solid var(--accent-soft);
	border-radius: 16px;
	padding: 22px 24px;
	box-shadow: 0 10px 24px rgba(31, 27, 22, 0.06);
}

.panel h3 {
	margin-top: 0;
	margin-bottom: 12px;
	font-family: "Newsreader", "Times New Roman", serif;
	font-size: 1.12rem;
}

.panel p {
	margin: 0;
	color: var(--muted);
	line-height: 1.6;
}

.panel code {
	background: #efe8e0;
	padding: 0 4px;
	border-radius: 6px;
	font-size: 0.92em;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

.shot {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--panel-border);
	box-shadow: var(--shadow);
}

.shot img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	background: linear-gradient(140deg, #f0dfd0, #efe9e3);
}

.shot figcaption {
	padding: 14px 16px 18px;
	font-size: 0.95rem;
	color: var(--muted);
}

.table {
	display: grid;
	gap: 12px;
}

.table-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	background: var(--panel);
	border: 1px solid var(--panel-border);
	border-left: 4px solid var(--accent-soft);
	border-radius: 14px;
	padding: 16px;
	gap: 12px;
}

.table-head {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.78rem;
	background: #f8f2ea;
}

.site-footer {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 32px 6vw 60px;
	color: var(--muted);
	display: flex;
	justify-content: space-between;
	font-size: 0.95rem;
}

@media (max-width: 920px) {
	.site-header {
		position: static;
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
	.hero {
		grid-template-columns: 1fr;
	}
	.site-footer {
		flex-direction: column;
		gap: 8px;
	}
}

@media (max-width: 640px) {
	.site-nav {
		flex-wrap: wrap;
		gap: 10px;
	}
	.ui-gallery,
	.gallery {
		grid-template-columns: 1fr;
	}
	.ui-shot img,
	.shot img {
		height: auto;
		aspect-ratio: 4 / 3;
		object-fit: cover;
	}
	.hero-actions {
		flex-direction: column;
		align-items: flex-start;
	}
	.btn {
		width: 100%;
		text-align: center;
	}
	.table-row {
		grid-template-columns: 1fr;
	}
}
