:root {
	--gold-1: #c9982c;
	--gold-2: #f0d36b;
	--gold-accent: #b57e10;
	--grad: linear-gradient(135deg, var(--gold-1), var(--gold-2));
	--r: 22px;
}
html[data-theme="dark"] {
	--bg: #050505;
	--surface: rgba(255, 255, 255, 0.045);
	--surface-2: rgba(255, 255, 255, 0.07);
	--border: rgba(240, 211, 107, 0.2);
	--border-strong: rgba(240, 211, 107, 0.42);
	--text: #ffffff;
	--text-2: rgba(255, 255, 255, 0.62);
	--gold-text: #f0d36b;
	--shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}
html[data-theme="light"] {
	--bg: #faf8f3;
	--surface: rgba(255, 255, 255, 0.78);
	--surface-2: rgba(255, 255, 255, 0.92);
	--border: rgba(181, 126, 16, 0.22);
	--border-strong: rgba(181, 126, 16, 0.45);
	--text: #141414;
	--text-2: rgba(20, 20, 20, 0.6);
	--gold-text: #96690c;
	--shadow: 0 14px 38px rgba(90, 70, 20, 0.14);
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}
body {
	font-family: "Montserrat", system-ui, sans-serif;
	background: var(--bg);
	color: var(--text);
	min-height: 100dvh;
	overflow-x: hidden;
	padding-bottom: 96px;
	transition:
		background 0.45s ease,
		color 0.45s ease;
}
/* ── drifting diamond field ── */
#field {
	position: fixed;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}
.dmd {
	position: absolute;
	border-radius: var(--r);
	transform: rotate(45deg);
	animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
	from {
		transform: rotate(45deg) translate(0, 0);
	}
	to {
		transform: rotate(45deg) translate(26px, -32px);
	}
}
@media (prefers-reduced-motion: reduce) {
	.dmd {
		animation: none;
	}
}

.shell {
	position: relative;
	z-index: 2;
	max-width: 1180px;
	margin: 0 auto;
	padding: 22px 18px 32px;
}
.side,
.main {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	min-width: 0;
}

/* ── nav (desktop only) ── */
.nav {
	display: none;
	flex-direction: column;
	gap: 3px;
	margin-top: 30px;
}
.nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 13px;
	text-decoration: none;
	color: var(--text-2);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	border: 1px solid transparent;
	transition: 0.18s ease;
}
.nav a .dot {
	width: 7px;
	height: 7px;
	flex-shrink: 0;
	transform: rotate(45deg);
	border-radius: 2px;
	background: var(--border-strong);
	transition: 0.18s ease;
}
.nav a:hover {
	color: var(--text);
	background: var(--surface);
}
.nav a.active {
	color: var(--gold-text);
	background: var(--surface);
	border-color: var(--border);
}
.nav a.active .dot {
	background: var(--grad);
}

@media (min-width: 900px) {
	.shell {
		display: grid;
		grid-template-columns: 330px 1fr;
		gap: 52px;
		padding: 0 36px;
		align-items: start;
	}
	.side {
		position: sticky;
		top: 0;
		height: 100dvh;
		overflow-y: auto;
		padding: 38px 0 30px;
		display: flex;
		flex-direction: column;
		margin: 0;
	}
	.side::-webkit-scrollbar {
		width: 0;
	}
	.main {
		padding: 60px 0 70px;
		margin: 0;
		max-width: 600px;
	}
	.nav {
		display: flex;
	}
	.hero {
		text-align: left;
		padding: 0;
	}
	.plate {
		margin-left: 0;
		margin-right: 0;
	}
	.rule {
		margin-left: 0;
	}
	.lockup {
		align-items: flex-start;
		margin-top: 30px;
	}
	.bio {
		text-align: left;
		padding: 0;
	}
	.pills {
		justify-content: flex-start;
	}
	.social {
		justify-content: flex-start;
	}
	.save {
		margin-top: 26px;
	}
	.sec:first-of-type {
		margin-top: 0;
	}
	.sec {
		scroll-margin-top: 26px;
		margin-top: 44px;
	}
	.foot {
		text-align: left;
		margin-top: auto;
		padding-top: 26px;
	}
}

/* ── corner accents ── */
.deco {
	position: fixed;
	z-index: 1;
	pointer-events: none;
	opacity: 0.85;
}
.deco.tl {
	top: 16px;
	left: 16px;
}
.deco.tr {
	top: 14px;
	right: 14px;
}
.deco.bl {
	bottom: 14px;
	left: 14px;
}
.deco.br {
	bottom: 12px;
	right: 12px;
	opacity: 0.4;
}

/* ── theme toggle ── */
.toggle {
	position: fixed;
	top: 18px;
	right: 18px;
	z-index: 40;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--border-strong);
	background: var(--surface);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	color: var(--gold-text);
	display: grid;
	place-items: center;
	cursor: pointer;
}

/* ── hero ── */
.hero {
	text-align: center;
	padding: 52px 4px 8px;
}
.plate {
	width: 118px;
	height: 118px;
	margin: 0 auto 22px;
	position: relative;
	display: grid;
	place-items: center;
}
.plate .ring {
	position: absolute;
	inset: 0;
	border-radius: 26px;
	transform: rotate(45deg);
	background: var(--grad);
	padding: 2px;
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
}
.plate .inner {
	position: absolute;
	inset: 7px;
	border-radius: 20px;
	transform: rotate(45deg);
	background: var(--surface);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--border);
}
.plate span {
	position: relative;
	font-size: 38px;
	font-weight: 800;
	letter-spacing: 1.5px;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.prefix {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 2.6px;
	text-transform: uppercase;
	color: var(--text-2);
	margin-bottom: 6px;
}
h1 {
	font-size: 31px;
	font-weight: 800;
	letter-spacing: 0.4px;
	line-height: 1.18;
	margin-bottom: 12px;
}
.rule {
	width: 112px;
	height: 2px;
	margin: 0 auto 13px;
	border-radius: 2px;
	background: linear-gradient(
		90deg,
		transparent,
		var(--gold-1),
		var(--gold-2),
		transparent
	);
}
.title {
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.8px;
	color: var(--gold-text);
}
.subtitle {
	font-size: 13.5px;
	font-weight: 500;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--text-2);
	margin-top: 5px;
}

/* ── group lockup ── */
.lockup {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	margin: 26px 0 4px;
}
.lockup img {
	width: 148px;
	height: auto;
	display: block;
}
/* on cream the gold highlights lose their edge — a hairline shadow holds it */
html[data-theme="light"] .lockup img {
	filter: drop-shadow(0 1px 1px rgba(80, 55, 5, 0.28));
}

/* ── generic section ── */
.sec {
	margin-top: 30px;
}
.sec-h {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 2.6px;
	text-transform: uppercase;
	color: var(--text-2);
	margin: 0 4px 11px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.sec-h::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--border-strong), transparent);
}

.bio {
	font-size: 14.5px;
	line-height: 1.72;
	color: var(--text-2);
	text-align: center;
	padding: 0 6px;
}

/* ── profile bullet points (qualifications / history) ── */
.facts {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: left;
}
.facts li {
	position: relative;
	padding-left: 20px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--text-2);
}
.facts li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.58em;
	width: 8px;
	height: 8px;
	transform: rotate(45deg);
	border-radius: 2px;
	background: var(--grad);
}

.hist {
	margin-top: 22px;
}
.sub-h {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 2.2px;
	text-transform: uppercase;
	color: var(--gold-text);
	margin: 0 0 2px 4px;
}
.hist-list li {
	color: var(--text);
}
.hist-role {
	display: block;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.2px;
}
.hist-org {
	display: block;
	font-size: 12.5px;
	color: var(--text-2);
	margin-top: 1px;
}
.hist-period {
	display: block;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.6px;
	color: var(--gold-text);
	margin-top: 3px;
}

.pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.pill {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.6px;
	padding: 8px 15px;
	border-radius: 999px;
	border: 1px solid var(--border-strong);
	background: var(--surface);
	color: var(--gold-text);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

/* ── roles ── */
.roles {
	display: flex;
	flex-direction: column;
	gap: 9px;
}
.role {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 14px 16px;
	border-radius: 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}
.role .dia {
	width: 11px;
	height: 11px;
	flex-shrink: 0;
	transform: rotate(45deg);
	border-radius: 2.5px;
	background: var(--grad);
}
.role .org {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.2px;
}
.role .rol {
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.4px;
	color: var(--gold-text);
	margin-top: 2px;
}

/* ── action cards ── */
.cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 15px 16px;
	border-radius: 18px;
	background: var(--surface);
	border: 1px solid var(--border);
	text-decoration: none;
	color: inherit;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	transition:
		transform 0.18s ease,
		border-color 0.18s ease,
		background 0.18s ease;
}
.card:active {
	transform: scale(0.985);
}
@media (hover: hover) {
	.card:hover {
		border-color: var(--border-strong);
		background: var(--surface-2);
	}
}
.ico {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--surface-2);
	border: 1px solid var(--border);
}
.ico svg {
	width: 20px;
	height: 20px;
}
.card .lab {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 1.7px;
	text-transform: uppercase;
	color: var(--text-2);
}
.card .val {
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: 0.2px;
	margin-top: 2px;
	word-break: break-word;
}
.card .go {
	margin-left: auto;
	color: var(--gold-text);
	font-size: 17px;
	opacity: 0.55;
	flex-shrink: 0;
}

/* ── social ── */
.social {
	display: flex;
	gap: 11px;
	justify-content: center;
	flex-wrap: wrap;
}
.social a {
	width: 48px;
	height: 48px;
	border-radius: 15px;
	display: grid;
	place-items: center;
	background: var(--surface);
	border: 1px solid var(--border);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: border-color 0.18s ease;
}
.social a:hover {
	border-color: var(--border-strong);
}
.social svg {
	width: 21px;
	height: 21px;
}

/* ── save cta ── */
.save {
	width: 100%;
	margin-top: 30px;
	padding: 17px;
	border: none;
	border-radius: 18px;
	cursor: pointer;
	background: var(--grad);
	color: #1a1200;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: 1.3px;
	text-transform: uppercase;
	box-shadow: var(--shadow);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.save:active {
	transform: scale(0.99);
}

.foot {
	text-align: center;
	margin-top: 26px;
	font-size: 10.5px;
	letter-spacing: 1.7px;
	text-transform: uppercase;
	color: var(--text-2);
	opacity: 0.7;
}

/* ── sticky mobile bar ── */
.bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 30;
	display: flex;
	gap: 9px;
	padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
	background: var(--surface-2);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	border-top: 1px solid var(--border);
}
.bar a,
.bar button {
	flex: 1;
	padding: 13px 6px;
	border-radius: 14px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
}
.bar .primary {
	background: var(--grad);
	color: #1a1200;
	border-color: transparent;
}
@media (min-width: 700px) {
	.bar {
		display: none;
	}
	body {
		padding-bottom: 32px;
	}
}
.hide {
	display: none !important;
}
