:root {
	--bg: #000000;
	--panel: #0a0a0a;
	--panel-strong: #151515;
	--panel-soft: #101010;
	--line: #2a2a2a;
	--line-soft: #1b1b1b;
	--text: #f4f4f1;
	--muted: #8a8a8a;
	--muted-strong: #b7b7b0;
	--warm: #8f8175;
	--accent: #0a84ff;
	--max-width: 1180px;
}

html {
	background: var(--bg);
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	color: var(--text);
	text-align: left;
	line-height: 1.55;
	font-size: 14px;
	margin: 0;
	padding: 0 0 16px;
	background:
		linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.04) calc(50% - 1px), rgba(255, 255, 255, 0.04) 50%, transparent 50%),
		var(--bg);
	-webkit-text-size-adjust: 100%;
}

body:before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 25% 100%, 100% 220px;
	opacity: 0.55;
}

a,
a:visited {
	text-decoration: none;
	color: var(--muted-strong);
	transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

a:hover,
a:focus {
	color: var(--text);
}

a:focus-visible {
	outline: 1px solid var(--accent);
	outline-offset: 4px;
}

#header {
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	background: rgba(0, 0, 0, 0.96);
}

#navbar {
	position: relative;
	margin: 0 auto;
	width: 100%;
	max-width: var(--max-width);
	min-height: 68px;
	padding: 0 20px;
	box-sizing: border-box;
	text-align: left;
	display: grid;
	grid-template-columns: minmax(260px, 1fr) auto;
	column-gap: 22px;
	align-items: stretch;
	border-left: 1px solid var(--line);
	border-right: 1px solid var(--line);
}

#title {
	width: auto;
	display: flex;
	align-items: center;
	min-width: 0;
}

#title a {
	display: inline-flex;
	align-items: center;
	min-height: 68px;
	padding: 0 0 0 10px;
	white-space: nowrap;
	color: var(--text);
	font-size: 15px;
	line-height: 1;
	font-weight: 360;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

#title img {
	width: 18px;
	height: 18px;
	padding: 0;
	image-rendering: pixelated;
}

#links {
	width: auto;
	min-width: 0;
	display: flex;
	flex-wrap: nowrap;
	margin-top: 0;
}

#links a,
#link a:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 84px;
	padding: 0 15px;
	font-size: 13px;
	line-height: 1.2;
	font-weight: 600;
	color: var(--muted);
	box-sizing: border-box;
	background-color: transparent;
}

#links a:hover,
#links a:focus,
#links a[aria-current="page"] {
	color: var(--text);
}

#links a[aria-current="page"] {
	background: var(--panel-soft);
	box-shadow: inset 0 -1px 0 var(--text);
}

.mobile-nav-toggle {
	display: none;
}

#content {
	position: relative;
	margin: 0 auto;
	width: 100%;
	max-width: var(--max-width);
	padding: 0;
	box-sizing: border-box;
	border-left: 1px solid var(--line);
	border-right: 1px solid var(--line);
}

#content:before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, transparent calc(25% - 1px), var(--line-soft) calc(25% - 1px), var(--line-soft) 25%, transparent 25%),
		linear-gradient(90deg, transparent calc(75% - 1px), var(--line-soft) calc(75% - 1px), var(--line-soft) 75%, transparent 75%);
}

#dual {
	position: relative;
	width: 50%;
	box-sizing: border-box;
	padding: 36px 20px 46px;
	--dual-pad-x: 20px;
	--dual-pad-y: 36px;
}

#dual img {
	display: inline-block;
	border: 1px solid var(--line);
	max-width: 100%;
	height: auto;
	background: var(--panel);
	border-radius: 6px;
}

#img-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding-top: 8px;
}

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

#img-link img {
	width: min(100%, 430px);
	max-width: 100%;
}

#footer {
	border-top: 1px solid var(--line);
	min-height: 46px;
	margin-bottom: 10px;
	background: #000000;
}

#footer #foot-text {
	margin: 0 auto;
	width: 100%;
	max-width: var(--max-width);
	min-height: 46px;
	padding: 0 20px;
	box-sizing: border-box;
	color: var(--muted);
	text-align: right;
	border-left: 1px solid var(--line);
	border-right: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

#footer #foot-text a {
	margin-left: 10px;
	color: var(--muted);
}

input,
select,
textarea {
	position: relative;
	top: 2px;
	right: 10px;
	padding: 7px 8px;
	color: var(--text);
	background: var(--panel-strong);
	border: 1px solid var(--line);
	border-radius: 4px;
}

.border-gray {
	border: 1px solid var(--line);
}

textarea {
	margin-bottom: 6px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
img {
	box-sizing: border-box;
}

h1 {
	font-size: clamp(38px, 5vw, 72px);
	line-height: 0.95;
	padding: 0;
	margin: 0;
	font-weight: 760;
}

h2 {
	font-size: 21px;
	line-height: 1.15;
	padding: 14px 18px;
	margin: 0;
	font-weight: 700;
	color: var(--text);
}

h2 a,
h2 a:visited {
	color: inherit;
}

h3 {
	font-size: 14px;
	line-height: 1.35;
	padding: 13px 18px;
	margin: 0;
	font-weight: 600;
	color: var(--muted-strong);
}

h4 {
	font-size: 13px;
	line-height: 1.35;
	padding: 12px 18px;
	margin: 0;
	font-weight: 600;
}

h5 {
	font-size: 12px;
	line-height: 1.35;
	padding: 14px 18px;
	margin: 0;
	font-weight: 600;
	text-transform: uppercase;
}

h6 {
	font-size: 11px;
	line-height: 1.35;
	padding: 12px 18px;
	margin: 0;
	font-weight: 600;
}

p {
	padding: 14px 18px;
	margin: 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.5;
}

a {
	padding: 0;
	margin: 0;
}

img {
	padding: 0;
	max-width: 100%;
	height: auto;
}

strong {
	color: var(--text);
}

.right {
	float: right;
}

.left {
	float: left;
}

.clear {
	clear: both;
}

#content + .clear {
	height: 0;
	overflow: hidden;
	font-size: 0;
	line-height: 0;
}

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

.font10 {
	font-size: 11px;
}

.gray {
	color: var(--muted);
}

.red {
	color: var(--accent);
	display: inline;
}

.w100 {
	width: 120px;
	float: left;
}

.w300 {
	width: calc(100% - 120px);
	float: left;
}

.border-top {
	border-top: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.01);
}

.border-both {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--panel);
}

.border-top:after,
.border-both:after,
#navbar:after,
#content:after {
	content: "";
	display: block;
	clear: both;
}

.border-top:hover {
	background: rgba(255, 255, 255, 0.035);
}

.pswp__custom-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 14px 18px 18px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
	color: #ffffff;
	font-size: 13px;
	line-height: 1.5;
	pointer-events: none;
	box-sizing: border-box;
}

#content #project-header + #dual .border-top:first-child {
	display: flex;
	align-items: center;
	gap: 6px;
}

#content #project-header + #dual .border-top:first-child:after {
	content: none;
	display: none;
}

#content #project-header + #dual .border-top:first-child h2.left {
	order: 1;
	flex: 1 1 auto;
	min-width: 0;
	float: none;
}

#content #project-header + #dual .border-top:first-child h3.right,
#content #dual.right > .right h3 {
	padding: 0;
	margin: 0;
}

#content #project-header + #dual .border-top:first-child h3.right {
	flex: none;
	float: none;
}

#content #project-header + #dual .border-top:first-child h3.right:first-of-type {
	order: 3;
}

#content #project-header + #dual .border-top:first-child h3.right:last-of-type {
	order: 2;
}

#content #dual.right > .border-top:first-child + .right,
#content #dual.right > .border-top:first-child + .right + .right {
	position: absolute;
	top: calc(var(--dual-pad-y) + 5px);
	z-index: 2;
	float: none;
	width: auto;
}

#content #dual.right > .border-top:first-child + .right {
	right: var(--dual-pad-x);
}

#content #dual.right > .border-top:first-child + .right + .right {
	right: calc(var(--dual-pad-x) + 46px);
}

#content #dual.right > .border-top:first-child:has(+ .right) {
	min-height: 50px;
	padding-right: 96px;
}

#content #dual.right > .border-top:first-child:has(+ .right) > .left {
	float: none;
}

#content #project-header + #dual .border-top:first-child h3.right a,
#content #dual.right > .right h3 a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background-color: var(--panel);
	box-sizing: border-box;
	line-height: 1;
}

#content #project-header + #dual .border-top:first-child h3.right a:hover,
#content #dual.right > .right h3 a:hover {
	background-color: var(--text);
	border-color: var(--text);
	color: #000000;
}

#content #project-header + #dual .border-top:first-child h3.right a .red,
#content #dual.right > .right h3 a .red {
	display: block;
	font-size: 23px;
	line-height: 1;
}

#content #project-header + #dual .border-top:first-child h3.right a:hover .red,
#content #dual.right > .right h3 a:hover .red {
	color: #000000;
}

#content #project-header + #dual .border-top:first-child h3.right a[href="#"],
#content #dual.right > .right h3 a[href="#"] {
	opacity: 0.35;
	pointer-events: none;
}

.home-figure {
	padding-top: 42px;
}

#dual .home-figure img {
	width: min(100%, 440px);
	border: 0;
	background: transparent;
	opacity: 1;
}

@media screen and (max-width: 760px) {
	body {
		font-size: 16px;
		line-height: 1.55;
		text-align: left;
		background: var(--bg);
	}

	body:before {
		background-size: 50% 100%, 100% 180px;
	}

	#navbar {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 44px;
		column-gap: 10px;
		align-items: center;
		min-height: 0;
		padding-left: 16px;
		padding-right: 16px;
	}

	#title,
	#dual,
	.w100,
	.w300 {
		width: 100%;
	}

	#title {
		float: none;
		width: auto;
		min-width: 0;
	}

	#title a {
		min-height: 58px;
		padding: 0 8px;
		white-space: nowrap;
		font-size: 12px;
		line-height: 1;
		letter-spacing: 0.04em;
	}

	#title img {
		flex: none;
	}

	.mobile-nav-toggle {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		justify-self: end;
		width: 40px;
		height: 40px;
		padding: 0;
		margin: 0;
		color: var(--text);
		background: transparent;
		border: 1px solid var(--line);
		border-radius: 999px;
		cursor: pointer;
	}

	.mobile-nav-toggle span {
		position: absolute;
		left: 50%;
		top: 50%;
		width: 16px;
		height: 1px;
		background: currentColor;
		transform-origin: center;
		transition: opacity 0.16s ease, transform 0.16s ease;
	}

	.mobile-nav-toggle span:nth-child(1) {
		transform: translate(-50%, -6px);
	}

	.mobile-nav-toggle span:nth-child(2) {
		transform: translate(-50%, -50%);
	}

	.mobile-nav-toggle span:nth-child(3) {
		transform: translate(-50%, 5px);
	}

	body.mobile-nav-open .mobile-nav-toggle span:nth-child(1) {
		transform: translate(-50%, -50%) rotate(45deg);
	}

	body.mobile-nav-open .mobile-nav-toggle span:nth-child(2) {
		opacity: 0;
	}

	body.mobile-nav-open .mobile-nav-toggle span:nth-child(3) {
		transform: translate(-50%, -50%) rotate(-45deg);
	}

	#links {
		grid-column: 1 / -1;
		width: 100%;
		flex-wrap: wrap;
		border-top: 1px solid var(--line);
	}

	body.mobile-nav-ready #links {
		display: none;
	}

	body.mobile-nav-ready.mobile-nav-open #links {
		display: flex;
	}

	#links a,
	#link a:visited {
		flex: 1 1 50%;
		min-width: 0;
		min-height: 48px;
		border-bottom: 1px solid var(--line);
		padding: 0 10px;
		font-size: 14px;
	}

	#content {
		display: block;
		min-height: 0;
	}

	#content.section-index {
		display: flex;
		flex-direction: column;
	}

	#content.section-index > #dual.right {
		order: 1;
	}

	#content.section-index > #dual.left {
		order: 2;
	}

	#content:before {
		background:
			linear-gradient(90deg, transparent calc(50% - 1px), var(--line-soft) calc(50% - 1px), var(--line-soft) 50%, transparent 50%);
	}

	#dual {
		padding: 24px 16px 34px;
		margin-bottom: 0;
		--dual-pad-x: 16px;
		--dual-pad-y: 24px;
	}

	.left,
	.right {
		float: none;
	}

	#content #project-header + #dual .border-top:first-child {
		display: flex;
		align-items: center;
		gap: 6px;
	}

	#content #project-header + #dual .border-top:first-child h2.left {
		order: 1;
		flex: 1 1 auto;
		min-width: 0;
	}

	#content #project-header + #dual .border-top:first-child h3.right {
		flex: none;
	}

	#content #project-header + #dual .border-top:first-child h3.right:first-of-type {
		order: 3;
	}

	#content #project-header + #dual .border-top:first-child h3.right:last-of-type {
		order: 2;
	}

	#content #dual.right > .border-top:first-child > .left {
		float: left;
		width: calc(100% - 108px);
	}

	#content #dual.right > .right {
		float: right;
		width: auto;
		margin-left: 8px;
	}

	#content #project-header + #dual .border-top:first-child h3.right a,
	#content #dual.right > .right h3 a {
		width: 44px;
		height: 44px;
	}

	#content #project-header + #dual .border-top:first-child h3.right a .red,
	#content #dual.right > .right h3 a .red {
		font-size: 28px;
	}

	h1 {
		font-size: 42px;
		line-height: 0.98;
	}

	h2 {
		font-size: 20px;
		line-height: 1.2;
	}

	h3 {
		font-size: 15px;
		line-height: 1.35;
	}

	h4 {
		font-size: 14px;
		line-height: 1.35;
	}

	h5 {
		font-size: 12px;
		line-height: 1.35;
	}

	h6 {
		font-size: 12px;
		line-height: 1.35;
	}

	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		padding-left: 12px;
		padding-right: 12px;
	}

	p {
		padding: 12px;
		font-size: 15px;
	}

	#footer {
		height: auto;
		padding: 0;
	}

	#footer #foot-text {
		justify-content: center;
		text-align: center;
		padding-left: 16px;
		padding-right: 16px;
	}

	#footer #foot-text a {
		display: inline-block;
		margin: 0 8px;
	}

	#content h3.right a,
	#content h5.right a {
		display: inline-block;
		padding: 6px 0;
	}

	#content .red {
		font-size: 1.2em;
	}

	.pswp__custom-caption {
		padding: 12px 14px 16px;
		font-size: 14px;
		line-height: 1.45;
	}

	.home-figure {
		padding-top: 0;
	}
}

@media screen and (max-width: 560px) {
	#navbar,
	#content,
	#footer #foot-text {
		border-left: 0;
		border-right: 0;
	}

	#links a,
	#link a:visited {
		flex-basis: 100%;
		justify-content: flex-start;
	}

	#title a {
		font-size: 10px;
		letter-spacing: 0.02em;
	}

	#content:before {
		background:
			linear-gradient(90deg, transparent calc(50% - 1px), var(--line-soft) calc(50% - 1px), var(--line-soft) 50%, transparent 50%);
	}
}
