html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video {
border:0;
font:inherit;
font-size:100%;
margin:0;
padding:0;
vertical-align:baseline;
}

article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
display:block;
}

* { box-sizing: border-box; }

/* ── Design tokens ─────────────────────────────────────── */
:root {
	--bg: #0a0805;
	--panel: rgba(18, 13, 9, 0.90);
	--panel-edge: rgba(255, 255, 255, 0.07);
	--card: #17120e;
	--card-edge: #2b231c;
	--card-hover: #1e1813;

	--ink: #f0ebe5;
	--ink-2: #c2b8ac;
	--ink-3: #8f8579;
	--ink-4: #6b6359;

	--accent: #ff6a3d;
	--accent-2: #ff9166;
	--accent-soft: rgba(255, 106, 61, 0.12);
	--accent-line: rgba(255, 106, 61, 0.30);

	--serif: 'Rokkitt', Helvetica, Arial, sans-serif;
	--sans: 'Lato', Helvetica, Arial, sans-serif;

	--radius: 8px;
	--radius-sm: 6px;
}

html, body {
	background: var(--bg);
	font-family: var(--sans);
	font-size: 16px;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

#campfire-bg {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	z-index: -1;
	pointer-events: none;
}

#ember-fg {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	z-index: 3;
	pointer-events: none;
	mix-blend-mode: screen;
}

::selection {
	background: rgba(255, 106, 61, 0.4);
	color: #fff;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a241a; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #5a3324; }

.clear { clear: both; }
.mainDetails .clear { display: none; }

p {
	font-size: 0.95em;
	line-height: 1.6;
	margin-bottom: 16px;
	color: var(--ink-2);
}

/* ── Shell ─────────────────────────────────────────────── */
#cv {
	width: 90%;
	max-width: 820px;
	background: linear-gradient(to bottom,
		rgba(18, 13, 9, 0.92) 0%,
		rgba(20, 13, 8, 0.88) 55%,
		rgba(31, 15, 7, 0.80) 100%);
	backdrop-filter: blur(7px) saturate(1.15);
	-webkit-backdrop-filter: blur(7px) saturate(1.15);
	margin: 40px auto;
	border-radius: var(--radius);
	border: 1px solid rgba(255, 106, 61, 0.10);
	overflow: hidden;
	box-shadow:
		0 0 140px rgba(255, 80, 0, 0.18),
		0 10px 50px rgba(0, 0, 0, 0.55),
		inset 0 -100px 120px -90px rgba(255, 84, 6, 0.18),
		inset 0 1px 0 rgba(255, 200, 150, 0.06);
}

/* ── Header / hero ─────────────────────────────────────── */
.mainDetails {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	padding: 30px 38px 26px;
	border-bottom: 1px solid;
	border-image: linear-gradient(90deg,
		rgba(255, 106, 61, 0.55),
		rgba(255, 106, 61, 0.18) 55%,
		transparent) 1;
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(255, 106, 61, 0.10), transparent 55%),
		rgba(16, 11, 6, 0.92);
}

#name h1 {
	font-family: var(--serif);
	font-size: 2.7em;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1;
	color: var(--ink);
	text-shadow: 0 0 26px rgba(255, 106, 61, 0.35), 0 0 70px rgba(255, 80, 0, 0.18);
}

#name h2 {
	font-family: var(--serif);
	font-weight: 500;
	font-size: 1.5em;
	color: var(--accent-2);
	margin-top: 4px;
	letter-spacing: 0.01em;
}

.heroTag {
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.08em;
	color: var(--ink-3);
	margin: 6px 0 0;
}

/* ── Contact chips ─────────────────────────────────────── */
.iconRow {
	display: flex;
	align-items: center;
	gap: 6px;
}

.iconChip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, 0.04);
	color: var(--ink-3);
	text-decoration: none;
	border: 1px solid var(--panel-edge);
	cursor: default;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.iconChip svg { width: 18px; height: 18px; }
a.iconChip { cursor: pointer; }

a.iconChip:hover {
	background: var(--accent-soft);
	color: var(--accent);
	border-color: var(--accent-line);
	transform: translateY(-2px);
}

.iconDivider {
	width: 1px;
	height: 22px;
	background: rgba(255, 255, 255, 0.1);
	margin: 0 3px;
	flex-shrink: 0;
}

/* ── Sections (two-column) ─────────────────────────────── */
#mainArea { padding: 0 38px; }

section {
	border-top: 1px solid;
	border-image: linear-gradient(90deg,
		transparent,
		rgba(255, 106, 61, 0.22) 25%,
		rgba(255, 106, 61, 0.22) 75%,
		transparent) 1;
	padding: 28px 0 4px;
	overflow: hidden;
}

section:first-child { border-top: 0; border-image: none; }
section:last-child { padding-bottom: 30px; }

.sectionTitle {
	float: left;
	width: 26%;
	padding-right: 16px;
}

.sectionContent {
	float: right;
	width: 74%;
}

.sectionTitle h1 {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 700;
	font-size: 1.55em;
	color: var(--accent);
	line-height: 1.1;
	text-shadow: 0 0 18px rgba(255, 106, 61, 0.30);
}

.sectionContent h2 {
	font-family: var(--serif);
	font-weight: 700;
	font-size: 1.4em;
	color: var(--ink);
	line-height: 1.15;
}

.atCompany {
	display: block;
	font-family: var(--sans);
	font-weight: 400;
	font-size: 0.62em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--accent-2);
	margin-top: 2px;
}

.subDetails {
	font-size: 0.78em;
	font-style: italic;
	color: var(--ink-4);
	margin: 4px 0 8px;
}

.lead {
	font-size: 1em;
	color: var(--ink-2);
	line-height: 1.6;
}

article { margin-bottom: 22px; }
article:last-child { margin-bottom: 6px; }

/* ── Role bullets ──────────────────────────────────────── */
.roleBullets {
	list-style: none;
	margin: 2px 0 0;
}

.roleBullets li {
	position: relative;
	font-size: 0.88em;
	color: var(--ink-2);
	line-height: 1.5;
	margin-bottom: 6px;
	padding-left: 18px;
}

.roleBullets li:before {
	content: '\25B8';
	position: absolute;
	left: 0;
	top: 0;
	color: var(--accent);
	font-size: 0.85em;
}

/* ── What I Build cards ────────────────────────────────── */
.buildGrid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin: 16px 0 20px;
}

.buildCard {
	background: var(--card);
	border: 1px solid var(--card-edge);
	border-radius: var(--radius);
	padding: 16px;
	transition: border-color 0.2s, transform 0.2s;
}

.buildCard:hover {
	border-color: var(--accent-line);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px -10px rgba(255, 84, 6, 0.35);
}

.buildCard svg {
	width: 20px;
	height: 20px;
	color: var(--accent);
	margin-bottom: 8px;
}

.buildCard h4 {
	font-family: var(--serif);
	font-weight: 700;
	font-size: 1.12em;
	color: var(--ink);
	margin-bottom: 4px;
}

.buildCard p {
	font-size: 0.84em;
	color: var(--ink-3);
	line-height: 1.5;
	margin: 0;
}

.noteCallout {
	font-size: 0.9em;
	color: var(--ink-2);
	background: var(--accent-soft);
	border: 1px solid var(--accent-line);
	border-left-width: 3px;
	border-radius: var(--radius-sm);
	padding: 13px 15px;
	line-height: 1.55;
	margin: 0;
}

/* ── Lane note ─────────────────────────────────────────── */
.laneNote {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 0.8em;
	font-style: italic;
	color: var(--ink-3);
	margin-bottom: 16px;
	line-height: 1.4;
}

.laneNote svg {
	width: 13px;
	height: 13px;
	color: var(--accent);
	flex-shrink: 0;
}

/* ── Lane A: case-study cards ──────────────────────────── */
.caseGrid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin-bottom: 22px;
}

.caseStudy {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--card-edge);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius);
	padding: 15px 16px;
	transition: background 0.2s, border-color 0.2s;
}

.caseStudy:hover {
	background: var(--card-hover);
	border-left-color: var(--accent-2);
	box-shadow: 0 8px 24px -10px rgba(255, 84, 6, 0.30);
}

.caseTop {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 7px;
}

.caseTag {
	font-size: 0.7em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--accent);
	font-weight: 700;
}

.csBadge {
	font-size: 0.62em;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ink-3);
	border: 1px solid var(--panel-edge);
	border-radius: 999px;
	padding: 3px 9px;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.csBadge.live { color: var(--accent-2); border-color: var(--accent-line); }
.csBadge.live:before {
	content: '';
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--accent-2);
	box-shadow: 0 0 6px var(--accent-2);
	animation: emberPulse 2.8s ease-in-out infinite;
}

@keyframes emberPulse {
	0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--accent-2); }
	50% { opacity: 0.55; box-shadow: 0 0 12px var(--accent-2); }
}

.caseStudy h3 {
	font-family: var(--serif);
	font-weight: 700;
	font-size: 1.25em;
	color: var(--ink);
	margin-bottom: 5px;
}

.caseStudy p {
	font-size: 0.83em;
	color: var(--ink-3);
	line-height: 1.5;
	margin-bottom: 9px;
}

.csImpact {
	color: var(--ink-2) !important;
	font-weight: 400;
}

.caseFoot {
	margin-top: auto;
	padding-top: 9px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 0.74em;
	color: var(--ink-4);
	line-height: 1.4;
}

.caseRole {
	display: inline-block;
	color: var(--accent-2);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.95em;
	margin-right: 6px;
}

.caseRole:after { content: '\00B7'; margin-left: 7px; color: var(--ink-4); }

/* ── Lane B: project flip-cards ────────────────────────── */
.projectGrid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin-bottom: 22px;
}

.projectCardWrapper { perspective: 900px; }

.projectCard {
	display: block;
	height: 100%;
	background: var(--card);
	border: 1px solid var(--card-edge);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius);
	padding: 15px 16px;
	text-decoration: none;
	color: inherit;
	position: relative;
	transform-style: preserve-3d;
	transition: transform 0.55s ease;
}

.projectCardWrapper:hover .projectCard {
	transform: rotateY(180deg);
	box-shadow: 0 8px 28px -10px rgba(255, 84, 6, 0.35);
}

.projectCardFront,
.projectCardBack {
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.projectCardBack {
	position: absolute;
	inset: 0;
	transform: rotateY(180deg);
	background: linear-gradient(150deg, var(--accent), #d8431d);
	border-radius: var(--radius);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 18px;
	text-align: center;
}

.jokeSetup {
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.85em;
	margin-bottom: 10px;
	line-height: 1.45;
}

.jokePunchline {
	color: #fff;
	font-weight: 700;
	font-size: 0.92em;
	line-height: 1.45;
}

.projectCard h3 {
	font-family: var(--serif);
	font-weight: 700;
	font-size: 1.2em;
	color: var(--ink);
	margin-bottom: 5px;
}

.projectCard p {
	font-size: 0.83em;
	color: var(--ink-3);
	line-height: 1.5;
	margin-bottom: 12px;
}

.projectLang {
	font-size: 0.7em;
	color: var(--accent);
	font-weight: 700;
	margin-bottom: 5px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.projectLink {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.76em;
	color: var(--ink-4);
}

.projectLink svg { width: 12px; height: 12px; }

/* ── Skills tags ───────────────────────────────────────── */
.skillGroups {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 16px 0 8px;
}

.skillGroup h4 {
	font-family: var(--serif);
	font-weight: 700;
	font-size: 1.1em;
	color: var(--accent-2);
	margin-bottom: 8px;
}

.skillTags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.skillTags li {
	font-size: 0.78em;
	color: var(--ink-2);
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--card-edge);
	border-radius: 999px;
	padding: 4px 11px;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.skillTags li:hover {
	color: var(--accent-2);
	border-color: var(--accent-line);
	background: var(--accent-soft);
}

/* ── Responsive ────────────────────────────────────────── */
@media all and (min-width: 602px) and (max-width: 800px) {
	.projectGrid,
	.caseGrid,
	.buildGrid { grid-template-columns: 1fr; }
}

@media all and (max-width: 601px) {
	#cv { width: 95%; margin: 14px auto; min-width: 280px; }

	.mainDetails {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 24px 20px;
	}

	#name h1 { font-size: 2.3em; }

	.sectionTitle, .sectionContent {
		float: none;
		width: 100%;
	}

	.sectionTitle {
		margin-bottom: 12px;
		font-size: 1.1em;
	}

	.projectGrid,
	.caseGrid,
	.buildGrid { grid-template-columns: 1fr; }

	#mainArea { padding: 0 22px; }
}

@media all and (max-width: 480px) {
	.mainDetails { padding: 20px 16px; }
	section { padding: 20px 0 0; }
	#name h1 { font-size: 2em; line-height: 1; }
	#name h2 { font-size: 1.3em; }
}

@media print {
	html, body { background: #fff; color: #000; }
	#campfire-bg, #ember-fg { display: none; }
	#cv { width: 100%; box-shadow: none; background: #fff; }
	.projectCard, .caseStudy, .buildCard, article { break-inside: avoid; }
}

/* ── Intro fade animations ─────────────────────────────── */
@-webkit-keyframes reset { 0% { opacity: 0; } 100% { opacity: 0; } }
@-webkit-keyframes fade-in { 0% { opacity: 0; } 40% { opacity: 0; } 100% { opacity: 1; } }
@-moz-keyframes reset { 0% { opacity: 0; } 100% { opacity: 0; } }
@-moz-keyframes fade-in { 0% { opacity: 0; } 40% { opacity: 0; } 100% { opacity: 1; } }
@keyframes reset { 0% { opacity: 0; } 100% { opacity: 0; } }
@keyframes fade-in { 0% { opacity: 0; } 40% { opacity: 0; } 100% { opacity: 1; } }

.instaFade {
	-webkit-animation-name: reset, fade-in;
	-webkit-animation-duration: 1.5s;
	-webkit-animation-timing-function: ease-in;
	-moz-animation-name: reset, fade-in;
	-moz-animation-duration: 1.5s;
	-moz-animation-timing-function: ease-in;
	animation-name: reset, fade-in;
	animation-duration: 1.5s;
	animation-timing-function: ease-in;
}

.quickFade {
	-webkit-animation-name: reset, fade-in;
	-webkit-animation-duration: 2.5s;
	-webkit-animation-timing-function: ease-in;
	-moz-animation-name: reset, fade-in;
	-moz-animation-duration: 2.5s;
	-moz-animation-timing-function: ease-in;
	animation-name: reset, fade-in;
	animation-duration: 2.5s;
	animation-timing-function: ease-in;
}

.delayOne { -webkit-animation-delay: 0, .5s; -moz-animation-delay: 0, .5s; animation-delay: 0, .5s; }
.delayTwo { -webkit-animation-delay: 0, 1s; -moz-animation-delay: 0, 1s; animation-delay: 0, 1s; }
.delayThree { -webkit-animation-delay: 0, 1.5s; -moz-animation-delay: 0, 1.5s; animation-delay: 0, 1.5s; }
.delayFour { -webkit-animation-delay: 0, 2s; -moz-animation-delay: 0, 2s; animation-delay: 0, 2s; }
.delayFive { -webkit-animation-delay: 0, 2.5s; -moz-animation-delay: 0, 2.5s; animation-delay: 0, 2.5s; }

@media (prefers-reduced-motion: reduce) {
	.instaFade, .quickFade { animation: none !important; }
	.csBadge.live:before { animation: none !important; }
}
