:root {
	--black: #080708;
	--ink: #110c0e;
	--panel: #1a1215;
	--panel-soft: #24171c;
	--wine: #761d35;
	--wine-bright: #a52c4d;
	--rose: #d9859e;
	--cream: #f5edef;
	--muted: #c5b4ba;
	--line: rgba(217, 133, 158, 0.2);
}

body {
	background-color: var(--black);
	background-image: radial-gradient(circle at 78% 18%, rgba(118, 29, 53, 0.28), transparent 34em), linear-gradient(145deg, #050405 0%, #16090d 55%, #090708 100%);
	background-attachment: fixed;
	color: var(--muted);
}

body, input, textarea, select, button { font-family: "Source Sans Pro", sans-serif; }
strong, b, h1, h2, h3, h4, h5, h6 { color: var(--cream); }
h2, h3 { line-height: 1.2; }
a { color: var(--rose); }

#wrapper { width: 58em; }
#main { background: var(--panel); border: 1px solid var(--line); border-radius: 0.35em; box-shadow: 0 2em 6em rgba(0, 0, 0, 0.55); }
#main > .panel { padding: 3.4em; }

#nav a { color: var(--cream); opacity: 0.5; }
#nav a:hover, #nav a:focus-visible, #nav a.active { color: var(--rose); opacity: 1; }
#nav a.active:after { border-bottom-color: var(--wine-bright); }
#nav a span { background: var(--wine); }
#nav a span:after { border-top-color: var(--wine); }

#main > .panel.intro { min-height: 27em; height: auto; background: linear-gradient(115deg, var(--panel) 0 60%, #251219 60%); }
#main > .panel.intro header { padding: 3.25em; }
#main > .panel.intro .pic { width: 19em; min-height: 27em; }
#main > .panel.intro .pic:before { background: linear-gradient(90deg, rgba(26,18,21,0.12), rgba(118,29,53,0.14)); }
#main > .panel.intro .pic img { object-position: center 28%; }
#main > .panel.intro .pic .arrow { background: rgba(118, 29, 53, 0.9); }

.eyebrow { margin: 0 0 0.65em; color: var(--rose); font-size: 0.72em; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; }
.hero-title { color: var(--muted) !important; font-size: 1.08em !important; line-height: 1.45; }
.credential-row { display: flex; flex-wrap: wrap; gap: 0.45em; margin: 1.4em 0; }
.credential-row span { padding: 0.35em 0.7em; border: 1px solid var(--line); border-radius: 2em; color: var(--cream); font-size: 0.68em; line-height: 1.3; }
.button, button { border-radius: 0.2em; font-weight: 400; }
.hero-button, .contact-button { background: var(--wine); text-decoration: none; }
.hero-button:hover, .hero-button:focus, .contact-button:hover, .contact-button:focus { background: var(--wine-bright); }

.section-heading { max-width: 39em; }
.section-heading > p:last-child { color: var(--muted); }
.role-selector { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7em; margin: 2em 0 0.7em; }
.role-button { padding: 0.85em 0.6em; border: 1px solid var(--line); background: #120d0f; color: var(--muted); font-size: 0.8em; line-height: 1.25; }
.role-button .icon { display: block; margin-bottom: 0.35em; color: var(--rose); font-size: 1.2em; }
.role-button:hover, .role-button:focus-visible { background: var(--panel-soft); border-color: var(--rose); }
.role-button.active { background: var(--wine); border-color: var(--wine-bright); color: #fff; box-shadow: 0 0.6em 1.6em rgba(118,29,53,0.3); }
.role-button.active .icon { color: #fff; }
.selection-status { margin: 0 0 2em; color: #a9959c; font-size: 0.75em; text-align: center; }

.summary-card, .qualities-section { position: relative; padding: 1.8em; border-left: 0.22em solid var(--wine-bright); background: linear-gradient(110deg, rgba(118,29,53,0.18), rgba(36,23,28,0.55)); }
.summary-card p:last-child, .qualities-section p:last-child { margin-bottom: 0; color: var(--cream); font-size: 1.03em; line-height: 1.65; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 1em; padding-bottom: 0.9em; }
.section-title-row p, .section-title-row h3 { margin-bottom: 0; }

.skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85em; }
.skill-card { padding: 1.25em; border: 1px solid var(--line); background: #150f11; border-radius: 0.2em; }
.skill-card h4 { margin-bottom: 0.45em; }
.skill-card p { margin: 0; font-size: 0.83em; line-height: 1.55; }
.skill-icon { float: right; color: var(--wine-bright); font-size: 1.3em; }

.timeline { position: relative; margin-left: 0.45em; padding-left: 1.5em; border-left: 1px solid var(--line); }
.experience-card { position: relative; padding: 0 0 1.6em; margin-bottom: 1.4em; border-bottom: 1px solid var(--line); }
.experience-card:before { content: ""; position: absolute; left: -1.84em; top: 0.42em; width: 0.62em; height: 0.62em; border: 0.16em solid var(--panel); border-radius: 50%; background: var(--wine-bright); box-shadow: 0 0 0 1px var(--wine-bright); }
.experience-card h4, .experience-card p { margin-bottom: 0.4em; }
.experience-card > p:last-child { margin-bottom: 0; font-size: 0.88em; line-height: 1.6; }
.experience-meta { display: flex; gap: 1em; justify-content: space-between; color: var(--rose); font-size: 0.72em; line-height: 1.4; }
.job-title { color: var(--cream); font-size: 0.85em; font-weight: 400; }

.qualities-section h3 { margin-bottom: 0.65em; }
.credential-list { display: grid; gap: 0.7em; }
.credential { display: flex; align-items: center; gap: 1em; padding: 1em 1.15em; background: #150f11; border: 1px solid var(--line); }
.credential > .icon { width: 1.7em; color: var(--rose); font-size: 1.25em; text-align: center; }
.credential h4, .credential p { margin: 0; }
.credential p { color: var(--muted); font-size: 0.78em; }

.additional-experience { border: 1px solid var(--line); background: #120d0f; }
.additional-experience summary { padding: 1em 1.2em; color: var(--cream); cursor: pointer; font-weight: 400; }
.additional-experience summary span { float: right; color: #9f8991; font-size: 0.75em; font-weight: 300; }
.additional-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; padding: 0 1.2em 1.2em; }
.additional-grid p { margin: 0; padding: 0.75em; border-top: 1px solid var(--line); font-size: 0.8em; line-height: 1.5; }

.role-content { transition: opacity 0.18s ease, transform 0.18s ease; }
.role-content.is-filtered { display: none; }
.role-content.is-revealed { animation: reveal 0.28s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(0.3em); } to { opacity: 1; transform: none; } }

.contact-panel { min-height: 26em; display: flex; align-items: center; background: radial-gradient(circle at 80% 20%, rgba(118,29,53,0.25), transparent 45%); }
.contact-inner { max-width: 40em; margin: auto; text-align: center; }
.contact-inner h2 { margin-bottom: 0.7em; }
.contact-inner > p { margin-bottom: 1.5em; }
.contact-button:before { margin-right: 0.55em; }
.phone { margin: 1.2em 0 0.45em !important; color: var(--cream); font-weight: 400; }
.phone .icon { color: var(--rose); }
.contact-note { color: #9f8991; font-size: 0.75em; }
#footer { color: rgba(245,237,239,0.45); }
#footer a { color: rgba(217,133,158,0.75); }

@media screen and (max-width: 980px) {
	#main > .panel.intro { background: var(--panel); }
	#main > .panel.intro .pic { width: 100%; height: 30em; min-height: 0; order: -1; }
	#main > .panel.intro header { padding: 3em; }
}

@media screen and (max-width: 736px) {
	#main > .panel { padding: 2em 1.35em; }
	#main > .panel.intro .pic { height: 25em; }
	#main > .panel.intro header { padding: 2.3em 1.5em; }
	.role-selector { grid-template-columns: repeat(2, 1fr); }
	.role-button { width: auto; }
	.skill-grid, .additional-grid { grid-template-columns: 1fr; }
	.summary-card, .qualities-section { padding: 1.35em; }
	.additional-experience summary span { display: block; float: none; margin-top: 0.15em; }
}

@media print {
	body { background: #fff; color: #333; }
	#nav, #home, #contact, #footer, .role-selector, .selection-status { display: none !important; }
	#wrapper, #main { width: 100%; max-width: none; padding: 0; border: 0; box-shadow: none; }
	#main > .panel { display: block !important; opacity: 1 !important; padding: 0; }
	strong, b, h1, h2, h3, h4, h5, h6, .summary-card p:last-child, .qualities-section p:last-child, .job-title { color: #111; }
	.summary-card, .qualities-section, .skill-card, .credential, .additional-experience { background: transparent; }
	.role-content.is-filtered { display: none !important; }
	.additional-experience { display: block; }
	.additional-experience > * { display: block; }
}
