:root {
	color-scheme: light;
	--bg: #f6f7f7;
	--surface: #ffffff;
	--surface-muted: #eef1ef;
	--text: #111513;
	--muted: #606764;
	--faint: #8a918e;
	--line: #d9dfdc;
	--line-strong: #111513;
	--accent: #315b4b;
	--accent-soft: #dfe8e3;
	--focus: #111513;
	--radius: 8px;
	--shell: min(1180px, calc(100% - 40px));
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	background: var(--bg);
	scroll-behavior: smooth;
}

html.site-gallery-root {
	color-scheme: light;
	--bg: #f6f7f7;
	--panel: #ffffff;
	--muted: #606764;
	--faint: #8a918e;
	--text: #111513;
	--line: #d9dfdc;
	--line-strong: #111513;
	--focus: #111513;
	background: var(--bg);
}

body {
	margin: 0;
	min-height: 100%;
	overflow-x: hidden;
	background: var(--bg);
	color: var(--text);
	font-family: inherit;
	font-size: 16px;
	letter-spacing: 0;
	line-height: 1.5;
	text-rendering: optimizeLegibility;
}

a {
	color: inherit;
}

button,
input {
	font: inherit;
}

button {
	cursor: pointer;
}

::selection {
	background: var(--accent);
	color: #fff;
}

.shell {
	width: var(--shell);
	margin-inline: auto;
}

.skip-link {
	position: fixed;
	left: 1rem;
	top: 1rem;
	z-index: 100;
	transform: translateY(-160%);
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--text);
	color: #fff;
	padding: .65rem .9rem;
	text-decoration: none;
	transition: transform 160ms ease;
}

.skip-link:focus {
	transform: translateY(0);
	outline: 2px solid var(--focus);
	outline-offset: 3px;
}

.site-header {
	padding: 24px 0;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--text);
	font-size: .95rem;
	font-weight: 650;
	text-decoration: none;
	white-space: nowrap;
}

.brand img {
	width: 32px;
	height: 32px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	object-fit: cover;
}

.site-nav,
.view-toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .62);
	padding: 4px;
}

.site-nav a,
.view-toggle a,
.view-toggle button {
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	padding: 8px 13px;
	font-size: .92rem;
	line-height: 1;
	text-decoration: none;
	transition: background 140ms ease, color 140ms ease;
}

.site-nav a:hover,
.view-toggle a:hover,
.view-toggle button:hover,
.view-toggle button[aria-pressed="true"] {
	background: var(--text);
	color: #fff;
}

.site-nav a:focus-visible,
.view-toggle a:focus-visible,
.view-toggle button:focus-visible,
.brand:focus-visible,
.project-row:focus-visible,
.tag:focus-visible,
.media-button:focus-visible,
.viewer-close:focus-visible,
.viewer-nav:focus-visible,
#search:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 3px;
}

.home-hero {
	display: grid;
	place-items: center;
	min-height: clamp(300px, 42vw, 520px);
	padding: 76px 0 62px;
	text-align: center;
}

.eyebrow {
	margin: 0 0 18px;
	color: var(--accent);
	font-size: .82rem;
	font-weight: 700;
	text-transform: uppercase;
}

.fancy-title,
.site-gallery .hero h1 {
	margin: 0;
	color: var(--text);
	font-size: clamp(4.6rem, 15vw, 13rem);
	font-weight: 720;
	line-height: .82;
	letter-spacing: 0;
}

.fancy-title {
	position: relative;
	isolation: isolate;
	max-width: 100%;
	font-weight: 820;
}

.fancy-title span {
	position: relative;
	display: inline-block;
	background:
		linear-gradient(100deg, #111513 0%, #111513 35%, #315b4b 48%, #111513 62%, #111513 100%);
	background-size: 220% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	white-space: nowrap;
	will-change: transform;
}

.fancy-title::before,
.fancy-title::after {
	content: "arkiental";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.fancy-title::before {
	color: rgba(49, 91, 75, .18);
	transform: translate(.055em, .075em);
}

.fancy-title::after {
	color: rgba(255, 255, 255, .86);
	transform: translate(-.035em, -.04em);
}

.site-gallery .hero p,
.description,
.body {
	max-width: 680px;
	color: var(--muted);
	font-size: 1.08rem;
	line-height: 1.75;
}

@media (prefers-reduced-motion: no-preference) {
	.fancy-title span {
		animation: titleSheen 5.8s cubic-bezier(.2, .8, .2, 1) infinite;
	}
}

@keyframes titleSheen {
	0%,
	18% {
		background-position: 100% 0;
		transform: translateY(0);
	}

	52%,
	100% {
		background-position: 0 0;
		transform: translateY(-.025em);
	}
}

.identity-mark {
	margin: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	padding: 18px;
}

.identity-mark img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: calc(var(--radius) - 2px);
}

.identity-mark figcaption {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	border-top: 1px solid var(--line);
	margin-top: 18px;
	padding-top: 14px;
	color: var(--muted);
	font-size: .86rem;
}

.project-section {
	padding: 32px 0 84px;
}

.section-heading {
	display: block;
	margin-bottom: 18px;
	text-align: center;
}

.section-heading h2 {
	margin: 0;
	font-size: 2rem;
	font-weight: 680;
	line-height: 1.1;
}

.project-list {
	display: grid;
	gap: 12px;
	border-top: 1px solid var(--line-strong);
	padding-top: 14px;
}

.project-row {
	display: grid;
	grid-template-columns: minmax(220px, .36fr) minmax(0, 1fr) minmax(170px, auto);
	gap: 22px;
	align-items: stretch;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	padding: 12px;
	text-decoration: none;
	transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.project-row:hover {
	transform: translateY(-1px);
	border-color: color-mix(in srgb, var(--accent), var(--line) 35%);
}

.project-preview {
	position: relative;
	display: block;
	min-height: 126px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: calc(var(--radius) - 2px);
	background: #111513;
}

.project-preview::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(17, 21, 19, .04), rgba(17, 21, 19, .58)),
		linear-gradient(90deg, rgba(17, 21, 19, .18), transparent 45%);
	pointer-events: none;
}

.project-preview-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.01);
	transition: transform 220ms ease, filter 220ms ease;
}

.project-preview-label {
	position: absolute;
	left: 10px;
	bottom: 10px;
	z-index: 1;
	max-width: calc(100% - 20px);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 999px;
	background: rgba(17, 21, 19, .62);
	color: #fff;
	font-size: .72rem;
	font-weight: 760;
	padding: 5px 8px;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.project-row:hover .project-preview-image,
.project-row:focus-visible .project-preview-image {
	filter: saturate(1.08) contrast(1.03);
	transform: scale(1.045);
}

.project-copy {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 18px;
	align-content: center;
}

.project-index,
.project-url,
.status {
	font-size: .82rem;
	font-weight: 700;
}

.project-index {
	color: var(--faint);
}

.project-main {
	display: grid;
	gap: 5px;
}

.project-main strong {
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.1;
}

.project-main span {
	color: var(--muted);
}

.project-meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	color: var(--muted);
}

.status {
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 5px 9px;
	color: var(--muted);
	text-transform: uppercase;
}

.status-live {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--accent);
}

.site-footer {
	border-top: 1px solid var(--line);
	padding: 22px 0 28px;
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	color: var(--muted);
	font-size: .92rem;
}

.footer-inner p {
	margin: 0;
}

.footer-inner a {
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

/* Blog and gallery overrides. The page keeps its existing data behavior. */

.site-gallery {
	--bg: #f6f7f7;
	--panel: #ffffff;
	--muted: #606764;
	--faint: #8a918e;
	--text: #111513;
	--line: #d9dfdc;
	--line-strong: #111513;
	--focus: #111513;
	background: var(--bg);
	color: var(--text);
	font-family: inherit;
	font-size: 16px;
	letter-spacing: 0;
}

.site-gallery.noise::before {
	display: none;
}

.site-gallery .page-shell {
	min-height: 100dvh;
}

.site-gallery .site-header {
	border-bottom: 1px solid var(--line);
	padding: 22px 0;
}

.site-gallery .brand {
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	backdrop-filter: none;
	padding: 0;
}

.site-gallery .brand:hover {
	background: transparent;
}

.site-gallery .brand img {
	width: 32px;
	height: 32px;
	border-radius: var(--radius);
}

.site-gallery .brand span {
	font-size: .95rem;
}

.site-gallery .view-toggle {
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, .62);
	backdrop-filter: none;
}

.site-gallery .view-toggle a,
.site-gallery .view-toggle button {
	color: var(--muted);
	font-size: .92rem;
	padding: 8px 13px;
}

.site-gallery .view-toggle a:hover,
.site-gallery .view-toggle button:hover,
.site-gallery .view-toggle button[aria-pressed="true"] {
	background: var(--text);
	color: #fff;
}

.site-gallery .hero {
	padding: 58px 0 34px;
	text-align: center;
}

.site-gallery .hero h1 {
	max-width: none;
}

.site-gallery .controls {
	position: sticky;
	top: 0;
	z-index: 15;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: rgba(246, 247, 247, .92);
	padding: 14px 0;
	backdrop-filter: blur(12px);
}

.site-gallery .control-row {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(0, auto);
	gap: 14px;
	align-items: start;
}

.site-gallery .search-wrap {
	position: relative;
}

.site-gallery .search-wrap svg {
	position: absolute;
	left: 14px;
	top: 50%;
	width: 18px;
	height: 18px;
	color: var(--faint);
	transform: translateY(-50%);
	pointer-events: none;
}

.site-gallery #search {
	width: 100%;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	outline: 0;
	padding: 0 16px 0 42px;
}

.site-gallery .tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	max-width: 560px;
}

.site-gallery .tag {
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--muted);
	padding: 9px 12px;
	font-size: .86rem;
	line-height: 1;
	transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.site-gallery .tag:hover,
.site-gallery .tag[aria-pressed="true"] {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
}

.site-gallery .content {
	padding: 38px 0 82px;
}

.site-gallery .feed {
	display: grid;
	gap: 0;
	border-top: 1px solid var(--line-strong);
}

.site-gallery .post {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 34px;
	border-bottom: 1px solid var(--line);
	padding: 34px 0 42px;
}

.site-gallery .post-meta {
	color: var(--faint);
	font-size: .92rem;
	line-height: 1.65;
}

.site-gallery .post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 14px;
}

.site-gallery .post-tags span {
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	font-size: .78rem;
	padding: 4px 8px;
}

.site-gallery .post h2 {
	margin: 0;
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: 0;
}

.site-gallery .description {
	margin: 12px 0 0;
}

.site-gallery .body {
	margin-top: 18px;
	color: #343a37;
}

.site-gallery .body p,
.site-gallery .body ul,
.site-gallery .body ol {
	margin: 0 0 14px;
}

.site-gallery .body h3 {
	margin: 28px 0 10px;
	font-size: 1.05rem;
}

.site-gallery .body code {
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface-muted);
	padding: 2px 5px;
}

.site-gallery .media-grid {
	display: grid;
	gap: 8px;
	margin-top: 24px;
}

.site-gallery .media-grid.count-1 {
	grid-template-columns: 1fr;
}

.site-gallery .media-grid.count-2,
.site-gallery .media-grid.count-4 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-gallery .media-grid.count-3,
.site-gallery .media-grid.count-many {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-gallery .media-button {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	color: inherit;
	padding: 0;
	aspect-ratio: 1 / 1;
	transition: border-color 160ms ease, transform 160ms ease;
}

.site-gallery .media-button:hover {
	border-color: var(--line-strong);
	transform: translateY(-1px);
}

.site-gallery .media-button img,
.site-gallery .video-thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #111513;
}

.site-gallery .media-grid.count-1 .media-button,
.site-gallery .gallery-item.single-video {
	aspect-ratio: 16 / 9;
}

.site-gallery .media-grid.count-2 .media-button {
	aspect-ratio: 4 / 3;
}

.site-gallery .video-thumb {
	display: grid;
	place-items: center;
	color: #fff;
	background:
		linear-gradient(0deg, rgba(17, 21, 19, .32), rgba(17, 21, 19, .32)),
		var(--accent);
	background-position: center;
	background-size: cover;
}

.site-gallery .video-thumb svg {
	width: 42px;
	height: 42px;
}

.site-gallery .media-label {
	position: absolute;
	right: 8px;
	bottom: 8px;
	border-radius: 999px;
	background: rgba(17, 21, 19, .78);
	color: #fff;
	font-size: .78rem;
	line-height: 1;
	padding: 5px 8px;
}

.site-gallery .inline-player {
	margin-top: 24px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #111513;
}

.site-gallery .gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.site-gallery .gallery-item {
	aspect-ratio: 1 / 1;
}

.site-gallery .gallery-item:nth-child(9n + 1) {
	grid-column: span 2;
	grid-row: span 2;
}

.site-gallery .empty {
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 1rem;
	padding: 56px 0;
}

.site-gallery .hidden {
	display: none !important;
}

.site-gallery .media-viewer {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	gap: 14px;
	background: rgba(17, 21, 19, .9);
	padding: 28px;
	backdrop-filter: blur(18px);
}

.site-gallery .viewer-stage {
	display: grid;
	place-items: center;
	min-height: 0;
}

.site-gallery .viewer-stage img,
.site-gallery .viewer-stage video,
.site-gallery .viewer-stage .plyr {
	display: block;
	max-width: min(100%, 1280px);
	max-height: calc(100vh - 132px);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: var(--radius);
	background: #111513;
}

.site-gallery .viewer-stage img {
	width: auto;
	height: auto;
	object-fit: contain;
}

.site-gallery .viewer-stage video,
.site-gallery .viewer-stage .plyr {
	width: min(100%, 1280px);
	height: auto;
	object-fit: contain;
}

.site-gallery .viewer-stage .plyr:fullscreen,
.site-gallery .viewer-stage .plyr:-webkit-full-screen,
.site-gallery .viewer-stage .plyr--fullscreen-active,
.site-gallery .plyr:fullscreen,
.site-gallery .plyr:-webkit-full-screen,
.site-gallery .plyr--fullscreen-active {
	width: 100vw !important;
	height: 100vh !important;
	max-width: none !important;
	max-height: none !important;
	border: 0 !important;
	border-radius: 0 !important;
}

.site-gallery .viewer-stage .plyr:fullscreen video,
.site-gallery .viewer-stage .plyr:-webkit-full-screen video,
.site-gallery .viewer-stage .plyr--fullscreen-active video,
.site-gallery .plyr:fullscreen video,
.site-gallery .plyr:-webkit-full-screen video,
.site-gallery .plyr--fullscreen-active video,
.site-gallery .plyr:fullscreen .plyr__video-wrapper,
.site-gallery .plyr:-webkit-full-screen .plyr__video-wrapper,
.site-gallery .plyr--fullscreen-active .plyr__video-wrapper {
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
}

.site-gallery .viewer-close,
.site-gallery .viewer-nav {
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 999px;
	background: rgba(17, 21, 19, .76);
	color: #fff;
	backdrop-filter: blur(16px);
}

.site-gallery .viewer-close {
	position: fixed;
	top: 18px;
	right: 18px;
	z-index: 62;
	padding: 10px 14px;
}

.site-gallery .viewer-nav {
	position: fixed;
	top: 50%;
	z-index: 62;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	transform: translateY(-50%);
}

.site-gallery .viewer-prev {
	left: 18px;
}

.site-gallery .viewer-next {
	right: 18px;
}

.site-gallery .viewer-thumbs {
	z-index: 61;
	display: flex;
	justify-content: center;
	gap: 8px;
	max-width: min(100%, 900px);
	margin: 0 auto;
	overflow-x: auto;
	padding: 2px 2px 4px;
}

.site-gallery .viewer-thumb {
	position: relative;
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 6px;
	background: #111513;
	padding: 0;
	color: #fff;
	opacity: .58;
}

.site-gallery .viewer-thumb[aria-current="true"] {
	border-color: #fff;
	opacity: 1;
}

.site-gallery .viewer-thumb img,
.site-gallery .viewer-thumb .video-thumb {
	width: 100%;
	height: 100%;
}

.site-gallery .plyr {
	--plyr-color-main: var(--accent);
	--plyr-range-fill-background: var(--accent);
	--plyr-control-radius: 999px;
	font-family: inherit;
}

@media (prefers-reduced-motion: no-preference) {
	.project-row,
	.site-gallery .post,
	.site-gallery .gallery-item {
		animation: rise 360ms cubic-bezier(.2, .8, .2, 1) both;
	}
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 920px) {
	.home-hero {
		grid-template-columns: 1fr;
		gap: 34px;
		padding-top: 46px;
	}

	.project-row {
		grid-template-columns: minmax(210px, .42fr) minmax(0, 1fr);
	}

	.project-meta {
		grid-column: 2;
		justify-content: flex-start;
	}

	.section-heading,
	.site-gallery .control-row,
	.site-gallery .post {
		grid-template-columns: 1fr;
	}

	.site-gallery .tags {
		justify-content: flex-start;
		max-width: none;
	}

	.site-gallery .gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	:root {
		--shell: min(1180px, calc(100% - 28px));
	}

	.site-header {
		padding: 18px 0;
	}

	.header-inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.site-nav,
	.view-toggle {
		display: grid;
		width: 100%;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		justify-content: stretch;
	}

	.site-nav a,
	.view-toggle a,
	.view-toggle button {
		min-width: 0;
		padding-inline: 0;
		text-align: center;
	}

	.fancy-title,
	.site-gallery .hero h1 {
		font-size: 4.1rem;
	}

	.home-hero {
		padding: 32px 0 38px;
	}

	.project-row {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 10px;
	}

	.project-preview {
		min-height: 116px;
	}

	.project-copy {
		grid-template-columns: 34px minmax(0, 1fr);
		gap: 14px;
	}

	.project-main strong {
		font-size: 1.16rem;
	}

	.project-meta {
		grid-column: auto;
		align-items: center;
		justify-content: space-between;
		flex-direction: row;
		gap: 8px;
		width: 100%;
	}

	.footer-inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.site-gallery .hero {
		padding: 36px 0 24px;
	}

	.site-gallery .post h2 {
		font-size: 2rem;
	}

	.site-gallery .media-grid.count-3,
	.site-gallery .media-grid.count-many,
	.site-gallery .gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-gallery .gallery-item:nth-child(9n + 1) {
		grid-column: span 1;
		grid-row: span 1;
	}

	.site-gallery .media-viewer {
		padding: 16px;
	}

	.site-gallery .viewer-stage img,
	.site-gallery .viewer-stage video,
	.site-gallery .viewer-stage .plyr {
		max-height: calc(100vh - 146px);
	}

	.site-gallery .viewer-nav {
		top: auto;
		bottom: 84px;
		transform: none;
	}
}

@media (max-width: 420px) {
	.fancy-title,
	.site-gallery .hero h1 {
		font-size: 3.35rem;
	}

	.site-nav a,
	.view-toggle a,
	.view-toggle button {
		font-size: .86rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: .001ms !important;
	}
}
