:root {
	--carbon: #0b0b0d;
	--carbon-2: #121216;
	--alcantara: #261f1a;
	--alcantara-2: #322920;
	--suede: #3a332c;
	--cream: #f3ece3;
	--muted: #a79c90;
	--amber: #e4a04a;
	--amber-deep: #c57a24;
	--amber-soft: rgba(228, 160, 74, 0.16);
	--steel: #8aa0b3;
	--line: rgba(228, 160, 74, 0.2);
	--stroke: rgba(243, 236, 227, 0.08);
	--shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
	--font-display: "Cormorant Garamond", "Times New Roman", serif;
	--font-display-weight: 500;
	--font-display-tracking: -0.01em;
	--font-body: "Manrope", sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, monospace;
	--radius: 22px;
	--header-offset: 128px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

html,
body {
	margin: 0;
	min-height: 100%;
	background: var(--carbon);
	color: var(--cream);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
}

body {
	position: relative;
	overflow-x: hidden;
	background-color: #08080a;
}

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

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

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: var(--font-display-weight);
	line-height: 1.08;
	letter-spacing: var(--font-display-tracking);
	margin: 0;
}

p {
	margin: 0;
}

.shell {
	width: min(1240px, calc(100% - 40px));
	margin: 0 auto;
}

.visually-hidden,
.skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.skip-link:focus {
	position: fixed;
	left: 16px;
	top: 16px;
	width: auto;
	height: auto;
	clip: auto;
	z-index: 20;
	padding: 10px 14px;
	background: var(--amber);
	color: #1a1208;
	border-radius: 999px;
}

.site-header,
.site-main,
.site-footer {
	position: relative;
	z-index: 1;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 8;
	border-bottom: 1px solid var(--stroke);
	background: rgba(10, 10, 12, 0.92);
}

.site-header::after {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 78px;
	gap: 20px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.brand__plate {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--amber);
	background: var(--carbon-2);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.16),
		0 0 0 1px rgba(228, 160, 74, 0.28);
}

.brand__copy {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.brand__name {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 17px;
}

.brand__meta,
.portrait__caption small,
.eyebrow,
.chip,
.work-card__index,
.site-footer__copy,
.seek input {
	font-family: var(--font-mono);
	letter-spacing: 0.04em;
}

.brand__meta {
	color: var(--muted);
	font-size: 11px;
}

.nav {
	display: flex;
	gap: 28px;
}

.nav a,
.mobile-nav a {
	position: relative;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
}

.nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -8px;
	width: 100%;
	height: 1px;
	transform: scaleX(0);
	transform-origin: left;
	background: var(--amber);
}

.nav a:hover,
.mobile-nav a:hover,
.nav a:focus-visible {
	color: var(--cream);
}

.nav a:hover::after,
.nav a:focus-visible::after {
	transform: scaleX(1);
}

.header-contacts {
	display: flex;
	align-items: center;
	gap: 18px;
	flex: 0 0 auto;
}

.header-contacts a {
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.header-contacts a:hover,
.header-contacts a:focus-visible {
	color: var(--amber);
}

.nav-toggle {
	display: none;
	place-items: center;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	box-shadow: inset 0 0 0 1px var(--stroke);
	cursor: pointer;
	appearance: none;
}

.nav-toggle__bars {
	position: relative;
	display: block;
	width: 18px;
	height: 1.5px;
	background: var(--cream);
	border-radius: 99px;
	transition: background 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 1.5px;
	background: var(--cream);
	border-radius: 99px;
	transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle__bars::before {
	top: -6px;
}

.nav-toggle__bars::after {
	top: 6px;
}

.site-header.is-open .nav-toggle__bars {
	background: transparent;
}

.site-header.is-open .nav-toggle__bars::before {
	top: 0;
	transform: rotate(45deg);
}

.site-header.is-open .nav-toggle__bars::after {
	top: 0;
	transform: rotate(-45deg);
}

.mobile-nav {
	display: none;
	flex-direction: column;
	gap: 4px;
	padding: 8px 0 20px;
}

.hero {
	padding: 88px 0 40px;
}

.hero--error {
	min-height: 68vh;
}

.hero__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 56px;
	align-items: center;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	color: var(--amber);
	font-size: 12px;
	text-transform: uppercase;
}

.led {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--amber);
}

.hero__title {
	font-size: clamp(48px, 8vw, 92px);
	font-weight: var(--font-display-weight);
}

.hero__title span,
.hero__title strong {
	display: block;
}

.hero__title span {
	color: rgba(243, 236, 227, 0.62);
	font-weight: 400;
}

.hero__title strong {
	font-weight: var(--font-display-weight);
	background: linear-gradient(180deg, #fff6ea 10%, #e4a04a 78%, #8a5a1d 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero__lead,
.section__lead,
.about__panel p {
	color: var(--muted);
	max-width: 720px;
}

.hero__lead {
	margin: 22px 0 28px;
	font-size: 18px;
}

.hero__actions {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	border-radius: 999px;
	font-weight: 700;
}

.btn--metal {
	color: #1a1208;
	background: var(--amber);
	box-shadow: 0 0 0 1px rgba(255, 210, 140, 0.24);
}

.jewel-link i {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background:
		linear-gradient(135deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%),
		linear-gradient(45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%);
	transform: rotate(45deg) translateX(0);
}

.jewel-link:hover i {
	transform: rotate(45deg);
}

.text-link {
	color: var(--cream);
	border-bottom: 1px solid var(--line);
}

.stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 36px 0 0;
}

.stats div {
	padding: 14px 0 0;
	border-top: 1px solid var(--stroke);
}

.stats dt {
	color: var(--muted);
	font-size: 12px;
	font-family: var(--font-mono);
}

.stats dd {
	margin: 6px 0 0;
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 500;
}

.portrait {
	position: relative;
	margin: 0;
	justify-self: end;
	width: min(100%, 400px);
}

.portrait__ring {
	position: absolute;
	inset: -14px;
	border-radius: 36px;
	background: conic-gradient(from 180deg, transparent, var(--amber), transparent 38%, var(--steel), transparent 72%);
	opacity: 0.85;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	padding: 2px;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
}

.portrait__plate {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	padding: 16px;
	background: var(--alcantara);
	box-shadow:
		var(--shadow),
		inset 0 0 0 1px rgba(180, 160, 130, 0.28),
		inset 0 0 0 7px rgba(28, 25, 22, 0.35);
}

.portrait__plate img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 18%;
	border-radius: 18px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.portrait__caption {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 14px;
	padding: 0 6px;
	font-family: var(--font-display);
	font-weight: 500;
}

.portrait__caption small {
	color: var(--muted);
	font-weight: 400;
}

.section {
	padding: 84px 0;
	scroll-margin-top: var(--header-offset);
}

.section--dense {
	padding-top: 20px;
}

.section__head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 20px 32px;
	margin-bottom: 36px;
}

.section__head h2,
.about h2 {
	font-size: clamp(32px, 5vw, 56px);
	margin-bottom: 10px;
}

.featured-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 22px;
}

.platform-tablist {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 22px;
}

.platform-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 0;
	border-radius: 999px;
	color: var(--muted);
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--stroke);
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.04em;
	cursor: pointer;
}

.platform-tab span {
	color: var(--amber);
	font-size: 11px;
}

.platform-tab.is-on {
	color: #1a1208;
	background: var(--amber);
	box-shadow: none;
}

.platform-tab.is-on span {
	color: #1a1208;
}

.platform-panel[hidden] {
	display: none;
}

.work-card {
	grid-column: span 2;
}

.work-card--wide {
	grid-column: span 3;
}

.work-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--radius);
	background: rgba(16, 16, 18, 0.72);
	box-shadow: var(--shadow), 0 0 0 1px var(--stroke);
	content-visibility: auto;
	contain-intrinsic-size: auto 520px;
}

.work-card__preview {
	display: block;
	padding: 12px 12px 0;
}

.work-card__bezel {
	display: block;
	overflow: hidden;
	border-radius: 16px;
	background: var(--carbon-2);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.12),
		0 0 0 1px rgba(255, 255, 255, 0.04);
}

.work-card__bezel img,
.collab-card__preview img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top center;
	background: var(--carbon-2);
	transform: none;
}

.work-card__body,
.collab-card__body,
.alcantara-panel {
	background: var(--alcantara);
}

.work-card__body {
	padding: 22px 22px 24px;
	border-top: 1px dashed rgba(180, 160, 130, 0.16);
	box-shadow: inset 0 0 0 1px rgba(180, 160, 130, 0.08);
}

.work-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.chip {
	padding: 5px 9px;
	border-radius: 999px;
	color: var(--amber);
	background: rgba(228, 160, 74, 0.1);
	box-shadow: inset 0 0 0 1px rgba(228, 160, 74, 0.22);
	font-size: 11px;
	text-transform: uppercase;
}

.work-card__index {
	color: var(--muted);
	font-size: 12px;
}

.work-card h3,
.collab-card h3,
.about h3 {
	font-size: 28px;
	margin-bottom: 8px;
}

.work-card p {
	color: var(--muted);
	margin-bottom: 16px;
}

.link-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.jewel-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px 8px 8px;
	border-radius: 999px;
	background: rgba(10, 10, 12, 0.45);
	box-shadow:
		inset 0 0 0 1px rgba(228, 160, 74, 0.18),
		0 0 0 1px rgba(255, 255, 255, 0.03);
}

.jewel-link img {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #111;
}

.jewel-link span {
	font-family: var(--font-mono);
	font-size: 13px;
	color: #f6e7cf;
}

.jewel-link i {
	width: 12px;
	height: 12px;
	color: var(--amber);
	opacity: 0.8;
}

.jewel-link:hover,
.jewel-link:focus-visible {
	background: rgba(228, 160, 74, 0.12);
	box-shadow: inset 0 0 0 1px rgba(228, 160, 74, 0.5);
}

.jewel-link--compact {
	padding: 6px 10px 6px 6px;
}

.jewel-link--compact img {
	width: 16px;
	height: 16px;
}

.jewel-link--compact span {
	font-size: 12px;
}

.seek input {
	width: min(320px, 100%);
	padding: 12px 14px;
	border: 0;
	border-radius: 14px;
	color: var(--cream);
	background: rgba(12, 12, 14, 0.7);
	box-shadow: inset 0 0 0 1px var(--stroke);
	outline: none;
}

.seek input:focus {
	box-shadow: inset 0 0 0 1px rgba(228, 160, 74, 0.55);
}

.collab-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.collab-card {
	overflow: hidden;
	border-radius: 18px;
	background: rgba(14, 14, 16, 0.78);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px var(--stroke);
	content-visibility: auto;
	contain-intrinsic-size: auto 360px;
}

.collab-card__preview {
	display: block;
	padding: 8px 8px 0;
}

.collab-card__preview img {
	border-radius: 12px;
}

.collab-card__body {
	padding: 14px 14px 16px;
}

.collab-card h3 {
	font-size: 18px;
	margin-bottom: 10px;
}

.empty-filter {
	margin-top: 24px;
	color: var(--muted);
}

.more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.more-wrap:has([hidden]),
html.no-js .more-wrap {
	display: none;
}

.skill-cloud {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 32px;
	border-radius: 24px;
	box-shadow:
		var(--shadow),
		inset 0 0 0 1px rgba(180, 160, 130, 0.12),
		inset 0 0 0 6px rgba(28, 25, 22, 0.4);
}

.skill-cloud li {
	position: relative;
	margin: 0;
}

.skill-cloud li:hover,
.skill-cloud li:focus-within {
	z-index: 4;
}

.skill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	color: var(--cream);
	background: rgba(12, 12, 15, 0.72);
	box-shadow:
		inset 0 0 0 1px rgba(243, 236, 227, 0.16),
		0 0 0 1px rgba(0, 0, 0, 0.25);
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.03em;
	line-height: 1;
	white-space: nowrap;
	position: relative;
	cursor: pointer;
}

.skill__logo {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	display: block;
}

.skill:has(.skill__logo) {
	gap: 7px;
	padding-left: 10px;
}

.skill:hover,
.skill:focus-visible {
	background: rgba(228, 160, 74, 0.16);
	box-shadow: inset 0 0 0 1px rgba(228, 160, 74, 0.55);
}

.skill__tip {
	position: absolute;
	left: 0;
	top: calc(100% + 8px);
	z-index: 5;
	width: min(360px, 72vw);
	padding: 16px 14px 12px;
	border-radius: 14px;
	color: var(--cream);
	background: #141416;
	box-shadow:
		0 18px 40px rgba(0, 0, 0, 0.45),
		0 0 0 1px rgba(228, 160, 74, 0.28);
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.45;
	text-align: left;
	white-space: normal;
	opacity: 0;
	transform: translateY(6px);
	pointer-events: none;
}

.skill:hover .skill__tip,
.skill:focus .skill__tip,
.skill:focus-visible .skill__tip,
.skill.is-open .skill__tip {
	opacity: 1;
	transform: translateY(0);
}

.skill__tip.is-placed {
	position: fixed;
	z-index: 40;
	transform: none;
}

.skill__level {
	display: block;
	margin-bottom: 6px;
	color: var(--amber);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.about {
	display: grid;
	grid-template-columns: 1.3fr 0.7fr;
	gap: 22px;
}

.about__panel,
.carbon-plate {
	border-radius: 24px;
	padding: 32px;
	box-shadow: var(--shadow), 0 0 0 1px var(--stroke);
}

.about__panel {
	box-shadow:
		var(--shadow),
		inset 0 0 0 1px rgba(180, 160, 130, 0.1),
		inset 0 0 0 6px rgba(28, 25, 22, 0.5);
}

.about__panel p + p {
	margin-top: 14px;
}

.carbon-plate {
	background: var(--carbon-2);
}

.about__specs h3 {
	margin-bottom: 18px;
}

.about__specs ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.about__specs li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--stroke);
	color: var(--muted);
	font-size: 14px;
}

.about__specs strong {
	color: var(--cream);
	font-weight: 600;
	text-align: right;
}

.site-footer {
	padding: 28px 0 40px;
	border-top: 1px solid var(--stroke);
	background: linear-gradient(180deg, rgba(10, 10, 12, 0.2), rgba(10, 10, 12, 0.8));
}

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

.site-footer__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-footer__title {
	font-family: var(--font-display);
	font-weight: 500;
}

.site-footer__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: 6px;
}

.site-footer__contacts a {
	color: var(--cream);
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.03em;
	border-bottom: 1px solid var(--line);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer__contacts a:hover,
.site-footer__contacts a:focus-visible {
	color: var(--amber);
	border-color: var(--amber);
}

.site-footer__copy {
	color: var(--muted);
	font-size: 13px;
}

.site-footer__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	text-align: right;
}

.site-footer__credit {
	max-width: 520px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}

.site-footer__credit a {
	color: var(--cream);
	border-bottom: 1px solid var(--line);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
	color: var(--amber);
	border-color: var(--amber);
}

.is-hidden {
	display: none !important;
}

.preview-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: inherit;
	font-family: var(--font-display);
	font-size: 48px;
	font-weight: 500;
	color: var(--amber);
	background: var(--carbon-2);
}

@media (max-width: 980px) {
	.hero__grid,
	.about,
	.featured-grid,
	.collab-grid {
		grid-template-columns: 1fr;
	}

	.section__head {
		flex-direction: column;
		align-items: stretch;
	}

	.work-card,
	.work-card--wide {
		grid-column: auto;
	}

	.nav {
		display: none;
	}

	.nav-toggle {
		display: grid;
		margin-left: auto;
	}

	.site-header__inner {
		flex-wrap: wrap;
		min-height: 0;
		padding-top: 12px;
		padding-bottom: 4px;
	}

	.header-contacts {
		order: 3;
		flex: 1 0 100%;
		gap: 16px;
		padding-bottom: 8px;
	}

	.header-contacts a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.site-header.is-open .mobile-nav {
		display: flex;
	}

	.mobile-nav a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 0 4px;
		color: var(--cream);
	}

	.portrait {
		justify-self: center;
	}

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

@media (max-width: 720px) {
	.shell {
		width: min(1240px, calc(100% - 24px));
	}

	.hero {
		padding-top: 48px;
	}

	.hero__title {
		font-size: 48px;
	}

	.site-header.is-open .mobile-nav {
		border-top: 1px solid var(--stroke);
		padding-top: 16px;
	}

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

	.skill-cloud {
		padding: 22px 16px;
		gap: 8px;
	}

	.skill {
		min-height: 36px;
		padding: 0 14px;
		font-size: 12px;
	}

	.site-footer__inner,
	.hero__actions,
	.stats {
		flex-direction: column;
		align-items: flex-start;
	}

	.stats {
		display: grid;
		grid-template-columns: 1fr;
		width: 100%;
	}

	.site-footer__meta {
		align-items: flex-start;
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
