:root {
	--bg: #080a09;
	--bg2: #0e110f;
	--panel: #111512;
	--line: #252b27;
	--text: #f2f4f2;
	--muted: #9ca49e;
	--green: #83d53f;
	--green2: #a6ee61;
	--max: 1280px;
	--pad: clamp(20px, 4vw, 64px);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: Manrope, system-ui, sans-serif;
	overflow-x: hidden;
}

.noise {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 99;
	opacity: 0.025;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.site-header {
	height: 86px;
	max-width: var(--max);
	margin: auto;
	padding: 0 var(--pad);
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	position: relative;
	z-index: 10;
}

.brand {
	text-decoration: none;
	color: inherit;
	display: inline-flex;
	align-items: baseline;
	font: 500 25px/1 DM Mono, monospace;
	letter-spacing: -0.06em;
}

.brand-dot,
.brand-net {
	color: var(--green);
}

.brand-net {
	font-size: 0.54em;
	letter-spacing: 0;
	margin-left: 2px;
}

.nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.nav a {
	color: #bdc4bf;
	text-decoration: none;
	font-size: 14px;
}

.nav a:hover {
	color: white;
}

.nav-cta {
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 11px 16px;
}

.menu-btn {
	display: none;
	background: none;
	border: 0;
	color: white;
}

.hero {
	max-width: var(--max);
	margin: auto;
	min-height: calc(100vh - 86px);
	padding: clamp(70px, 10vw, 140px) var(--pad) 90px;
	display: grid;
	grid-template-columns: 0.92fr 1.08fr;
	gap: clamp(40px, 7vw, 100px);
	align-items: center;
}

.eyebrow,
.kicker,
.section-number,
.project-top,
.project-status {
	font: 400 12px/1.4 DM Mono, monospace;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.eyebrow {
	color: #bfc7c1;
	display: flex;
	gap: 10px;
	align-items: center;
}

.status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 15px rgba(131, 213, 63, 0.6);
}

h1 {
	font-size: clamp(54px, 7vw, 104px);
	line-height: 0.9;
	letter-spacing: -0.065em;
	margin: 28px 0 30px;
	font-weight: 600;
}

h1 span,
h2 span {
	color: var(--green);
}

.hero-lead {
	max-width: 610px;
	font-size: clamp(17px, 1.6vw, 21px);
	line-height: 1.65;
	color: #b5bdb7;
}

.hero-actions {
	display: flex;
	gap: 28px;
	align-items: center;
	margin-top: 38px;
}

.button {
	display: inline-flex;
	gap: 24px;
	align-items: center;
	text-decoration: none;
	padding: 14px 18px;
	border-radius: 4px;
	font-size: 14px;
}

.button-primary {
	background: var(--green);
	color: #0a0d0a;
	font-weight: 700;
}

.text-link,
.contact-mail {
	color: white;
	text-decoration: none;
	border-bottom: 1px solid #3f4741;
	padding-bottom: 4px;
}

.hero-meta {
	display: flex;
	gap: 22px;
	margin-top: 52px;
	color: #667068;
	font: 400 11px DM Mono, monospace;
	text-transform: uppercase;
}

.hero-visual {
	position: relative;
	min-width: 0;
}

.photo-frame {
	position: relative;
	background: #151915;
	padding: 9px;
	overflow: hidden;
}

.photo-frame::before {
	content: "";
	position: absolute;
	inset: 9px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	z-index: 2;
	pointer-events: none;
}

.photo-frame::after {
	content: "";
	position: absolute;
	right: 9px;
	bottom: 9px;
	width: 150px;
	height: 3px;
	background: #151915;
	z-index: 3;
}

.photo-frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-visual > .photo-frame {
	width: fit-content;
	max-width: 100%;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
}

.hero-visual > .photo-frame::before,
.hero-visual > .photo-frame::after {
	display: none;
}

.hero-visual > .photo-frame img {
	width: auto;
	height: auto;
	max-width: 100%;
	object-position: center;
	background: transparent;
}

.frame-brand {
	position: absolute;
	right: 22px;
	bottom: 11px;
	z-index: 4;
	background: #151915;
	padding: 1px 7px;
	display: flex;
	align-items: baseline;
	gap: 3px;
	font: 600 17px DM Mono, monospace;
}

.frame-brand small {
	color: var(--green);
	font-size: 10px;
}

.code-card {
	position: absolute;
	left: -60px;
	bottom: -45px;
	width: min(410px, 76%);
	background: rgba(8, 10, 9, 0.32);
	backdrop-filter: blur(8px);
	border: 1px solid var(--line);
	padding: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.code-head {
	display: flex;
	justify-content: space-between;
	color: #879087;
	font: 400 10px DM Mono, monospace;
	text-transform: uppercase;
}

.code-card pre {
	margin: 18px 0 0;
	overflow: hidden;
	color: #dfe4df;
	font: 400 11px/1.8 DM Mono, monospace;
}

.ln {
	color: #4c554e;
	margin-right: 14px;
}

.code-row {
	display: inline;
}

.tok-key {
	color: #9ee35f;
}

.tok-fn {
	color: #e8eee9;
}

.tok-str {
	color: #b9d99e;
}

.code-cursor {
	display: inline-block;
	width: 7px;
	height: 1.15em;
	margin-left: 4px;
	vertical-align: -0.18em;
	background: var(--green);
	animation: codeBlink 0.8s steps(1, end) infinite;
	box-shadow: 0 0 10px rgba(131, 213, 63, 0.25);
}

@keyframes codeBlink {
	0%,
	48% {
		opacity: 1;
	}

	49%,
	100% {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.code-cursor {
		animation: none;
		opacity: 0.8;
	}
}

.section {
	max-width: var(--max);
	margin: auto;
	padding: 140px var(--pad);
}

.section-head {
	display: grid;
	grid-template-columns: 80px 1fr 1fr;
	gap: 30px;
	align-items: end;
	margin-bottom: 60px;
}

.section-number,
.kicker {
	color: var(--green);
}

h2 {
	font-size: clamp(40px, 5vw, 70px);
	line-height: 1;
	letter-spacing: -0.05em;
	margin: 12px 0 0;
}

.section-head > p:last-child {
	color: var(--muted);
	max-width: 520px;
	line-height: 1.7;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
}

.project-card {
	min-height: 390px;
	padding: 28px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
	transition: 0.3s;
}

.project-card:hover {
	background: #101410;
	transform: translateY(-4px);
}

.project-card.featured {
	background: linear-gradient(145deg, rgba(131, 213, 63, 0.1), transparent 58%);
}

.project-top {
	display: flex;
	justify-content: space-between;
	color: #788179;
}

.project-body h3 {
	font-size: 27px;
	margin: 0 0 18px;
	letter-spacing: -0.03em;
}

.project-body p {
	color: #9da69f;
	line-height: 1.7;
	font-size: 14px;
}

.project-link {
	color: white;
	text-decoration: none;
	display: flex;
	justify-content: space-between;
	border-top: 1px solid var(--line);
	padding-top: 18px;
	font-size: 13px;
}

.project-status {
	color: #69726b;
}

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

.about-grid {
	display: grid;
	grid-template-columns: 1fr 0.9fr;
	gap: 90px;
}

.about-copy h2 {
	max-width: 700px;
}

.about-lead {
	font-size: 18px;
	line-height: 1.75;
	color: #aeb6b0;
	max-width: 680px;
	margin: 30px 0 50px;
}

.services > div {
	display: grid;
	grid-template-columns: 50px 180px 1fr;
	gap: 20px;
	padding: 24px 0;
	border-top: 1px solid var(--line);
}

.services span {
	font: 400 11px DM Mono, monospace;
	color: var(--green);
}

.services h3 {
	font-size: 15px;
	margin: 0;
}

.services p {
	margin: 0;
	color: #89928b;
	font-size: 13px;
	line-height: 1.65;
}

.office-gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	align-content: start;
}

.office-gallery figure {
	margin: 0;
	aspect-ratio: 3 / 4;
	height: auto;
	padding: 0;
	background: transparent;
}

.office-gallery .photo-frame::before,
.office-gallery .photo-frame::after,
.office-gallery .frame-brand {
	display: none;
}

.office-gallery .photo-frame img {
	object-fit: contain;
	object-position: center;
	background: transparent;
}

.office-gallery .gallery-main {
	grid-column: 1 / -1;
	height: auto;
}

.contact {
	max-width: var(--max);
	margin: auto;
	padding: 160px var(--pad);
}

.contact-inner {
	background: var(--green);
	color: #091009;
	padding: clamp(38px, 7vw, 90px);
	position: relative;
	overflow: hidden;
}

.contact .kicker {
	color: #234017;
}

.contact h2 {
	font-size: clamp(52px, 8vw, 112px);
}

.contact h2 span {
	color: #0a0e0a;
}

.contact-mail {
	display: inline-block;
	color: #091009;
	border-color: rgba(0, 0, 0, 0.3);
	font: 500 clamp(18px, 2vw, 27px) DM Mono, monospace;
	margin-top: 45px;
}

footer {
	max-width: var(--max);
	margin: auto;
	padding: 36px var(--pad);
	border-top: 1px solid var(--line);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	color: #677169;
	font: 400 11px DM Mono, monospace;
}

footer p:last-child {
	text-align: right;
}

.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
	opacity: 1;
	transform: none;
}

@media (max-width: 900px) {
	.nav {
		display: none;
		position: absolute;
		left: 20px;
		right: 20px;
		top: 76px;
		background: #0e120f;
		border: 1px solid var(--line);
		padding: 20px;
		flex-direction: column;
		align-items: stretch;
	}

	.nav.open {
		display: flex;
	}

	.menu-btn {
		display: block;
	}

	.hero {
		grid-template-columns: 1fr;
		padding-top: 70px;
	}

	.hero-visual {
		margin-top: 20px;
	}

	.code-card {
		left: 10px;
		bottom: -35px;
	}

	.section {
		padding-top: 110px;
		padding-bottom: 110px;
	}

	.section-head {
		grid-template-columns: 1fr;
	}

	.project-grid {
		grid-template-columns: 1fr;
	}

	.about-grid {
		grid-template-columns: 1fr;
		gap: 55px;
	}

	.office-gallery .gallery-main {
		height: auto;
	}

	.services > div {
		grid-template-columns: 40px 1fr;
	}

	.services p {
		grid-column: 2;
	}

	.contact {
		padding-top: 100px;
		padding-bottom: 100px;
	}

	footer {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	footer p,
	footer p:last-child {
		text-align: left;
		margin: 0;
	}
}

@media (max-width: 560px) {
	.site-header {
		height: 72px;
	}

	.hero {
		min-height: auto;
		padding-top: 55px;
	}

	.hero-actions {
		align-items: flex-start;
		flex-direction: column;
	}

	.hero-meta {
		flex-wrap: wrap;
	}

	.hero-visual > .photo-frame {
		height: auto;
	}

	.code-card {
		position: relative;
		left: auto;
		bottom: auto;
		margin: -40px 14px 0;
		width: auto;
	}

	.section {
		padding-top: 90px;
		padding-bottom: 90px;
	}

	.office-gallery {
		grid-template-columns: 1fr;
	}

	.office-gallery .gallery-main {
		grid-column: auto;
		height: auto;
	}

	.office-gallery figure {
		height: auto;
	}

	.photo-frame::after {
		width: 110px;
	}

	.frame-brand {
		font-size: 14px;
	}

	.contact {
		padding: 70px 20px;
	}

	.contact-inner {
		padding: 44px 28px;
	}
}
