@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap");

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, ul, li, img, section, article, header, footer, nav, button, input, textarea, video, svg {
	margin: 0; padding: 0; border: 0; font: inherit; vertical-align: baseline;
}
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; background: none; font-family: inherit; }
video { width: 100%; display: block; }

/* ============================================================
   TOKENS
   ============================================================ */
:root {
	--bg: #04090d;
	--bg-panel: rgba(14, 34, 40, 0.5);
	--bg-panel-solid: #0b232a;

	--teal: #5fd8e8;
	--teal-soft: rgba(95, 216, 232, 0.55);
	--teal-dim: rgba(95, 216, 232, 0.16);
	--teal-glow: rgba(95, 216, 232, 0.4);

	--orange: #f0a742;
	--orange-dim: rgba(240, 167, 66, 0.16);

	--text: #eef8f6;
	--text-dim: rgba(238, 248, 246, 0.58);
	--text-faint: rgba(238, 248, 246, 0.34);

	--border: rgba(95, 216, 232, 0.18);
	--border-soft: rgba(255, 255, 255, 0.08);

	--display: "Space Grotesk", sans-serif;
	--body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

	--maxw: 1280px;
	--corner: 16px;
}

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--teal) rgba(255,255,255,0.06); }

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
	position: relative;
}
body.detail-open { overflow: hidden; }
body.detail-open #site-header,
body.detail-open #hero,
body.detail-open #experience,
body.detail-open #skills,
body.detail-open #contact,
body.detail-open #site-footer {
	display: none;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--teal), var(--orange)); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--orange), var(--teal)); }

/* ---- page-wide background: dark + visible grid + a few glow patches + radar arcs ---- */
#grid-bg {
	position: absolute; top: 0; left: 0; right: 0; z-index: 1; pointer-events: none;
	background-image:
		linear-gradient(rgba(95, 216, 232, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(95, 216, 232, 0.06) 1px, transparent 1px),
		linear-gradient(rgba(95, 216, 232, 0.10) 1px, transparent 1px),
		linear-gradient(90deg, rgba(95, 216, 232, 0.10) 1px, transparent 1px);
	background-size: 42px 42px, 42px 42px, 168px 168px, 168px 168px;
	-webkit-mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
	mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
}
#glow-orb {
	position: fixed; inset: 0; z-index: 0; pointer-events: none;
	background:
		radial-gradient(650px 420px at 12% 8%, rgba(70, 175, 195, 0.12), transparent 70%),
		radial-gradient(600px 480px at 88% 90%, rgba(70, 175, 195, 0.11), transparent 70%),
		radial-gradient(700px 500px at 50% 45%, rgba(70, 175, 195, 0.07), transparent 70%),
		linear-gradient(180deg, #060f14 0%, #04090d 55%, #03060a 100%);
}
#page-arcs { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.75; }
#page-arcs svg { width: 100%; height: 100%; }
#page-arcs circle { fill: none; stroke: rgba(95, 216, 232, 0.09); stroke-width: 1; }
#page-arcs circle.soft { stroke: rgba(95, 216, 232, 0.05); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 2.5rem; position: relative; z-index: 2; }
@media screen and (max-width: 736px) { .wrap { padding: 0 1.25rem; } }

/* ============================================================
   ICONS
   ============================================================ */
.icon-svg { width: 15px; height: 15px; flex-shrink: 0; }
.icon-svg.fill { fill: currentColor; }
.icon-svg.stroke { fill: none; stroke: currentColor; }

@keyframes fade-up-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   LABEL / EYEBROW / SECTION HEADING
   ============================================================ */
.eyebrow {
	font-family: var(--display); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.2em;
	text-transform: uppercase; color: var(--orange); display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow .dim { color: var(--text-faint); font-weight: 500; }

/* num and heading-block stretch to the same height, so the number is
   leveled with the eyebrow+title block from top to bottom */
.section-heading { display: flex; align-items: flex-end; gap: 1.4rem; margin-bottom: 3rem; flex-wrap: wrap; }
.section-heading .num {
	font-family: var(--display); font-size: 3.2rem; font-weight: 700; line-height: 1;
	color: rgba(95, 216, 232, 0.18);
}
.heading-block { display: flex; flex-direction: column; gap: 0.55rem; }
.heading-block .eyebrow { margin-bottom: 0; line-height: 1.1; }
.section-heading h2 {
	font-family: var(--display); font-size: 2.85rem; font-weight: 700; letter-spacing: 0.01em;
	text-transform: uppercase; color: var(--text); line-height: 1;
}

.section-link {
	margin-left: auto; align-self: center; font-family: var(--display); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.08em;
	text-transform: uppercase; color: var(--teal);
	transition: color 0.2s ease; white-space: nowrap;
}
.section-link:hover { color: #ffffff; }

section.panel { padding: 6rem 0; position: relative; }
section.panel:not(:last-of-type) { border-bottom: 1px solid var(--border-soft); }

@media screen and (max-width: 736px) {
	section.panel { padding: 4rem 0; }
	.section-heading .num { font-size: 2.4rem; }
	.section-heading h2 { font-size: 1.7rem; }
}

/* ============================================================
   NAV / HEADER
   ============================================================ */
#site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(7, 24, 32, 0.32);
	backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	animation: fade-up-in 0.6s ease both;
}
#site-header .wrap { display: flex; align-items: center; gap: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }

.brand { display: flex; align-items: center; gap: 0.9rem; }
.brand-badge {
	width: 2.6rem; height: 2.6rem; background: var(--teal); color: #04231f;
	font-family: var(--display); font-weight: 700; font-size: 0.85rem;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%, 0 76%);
	box-shadow: 0 0 14px rgba(95,216,232,0.35);
}
.brand-text .brand-name { font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); line-height: 1.2; }
.brand-text .brand-sub { font-family: var(--display); font-weight: 500; font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }

#site-header nav { margin-left: auto; display: flex; align-items: center; gap: 2rem; }
#site-header nav ul { display: flex; gap: 1.8rem; }
#site-header nav ul li a { display: flex; align-items: baseline; gap: 0.4rem; font-family: var(--display); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); transition: color 0.2s ease; }
#site-header nav ul li a .idx { color: var(--text-faint); }
#site-header nav ul li a:hover { color: var(--teal); }

.status-pill { display: flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px 2px rgba(74, 222, 128, 0.6); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

@media screen and (max-width: 900px) { #site-header nav ul { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
#hero { padding: 5rem 0 6rem; position: relative; z-index: 2; overflow: visible; }

.hero-panel {
	position: relative; overflow: visible; border-radius: 22px; border: 1px solid var(--border);
	background: linear-gradient(160deg, rgba(90, 200, 210, 0.14), rgba(10, 30, 38, 0.4));
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	padding: 3rem; box-shadow: 0 30px 90px rgba(0,0,0,0.4);
	animation: fade-up-in 0.9s ease 0.1s both;
}
@media screen and (max-width: 736px) { .hero-panel { padding: 1.6rem 1.3rem; border-radius: 16px; } }

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: center; position: relative; z-index: 2; }
@media screen and (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; } }

.hero-name {
	font-family: var(--display); font-weight: 700; font-size: 3.6rem; line-height: 1.05; letter-spacing: 0.01em;
	text-transform: uppercase; color: #ffffff;
	text-shadow: 0 0 30px rgba(95, 216, 232, 0.45), 0 0 80px rgba(95, 216, 232, 0.15);
	margin-bottom: 1.1rem;
}
.hero-sub { font-family: var(--display); font-weight: 500; font-size: 0.84rem; letter-spacing: 0.03em; color: var(--text-dim); margin-bottom: 2.6rem; max-width: 40rem; }
.hero-sub .sep { color: var(--teal); margin: 0 0.4rem; }
@media screen and (max-width: 736px) { .hero-name { font-size: 2.2rem; } }

.sysmap {
	position: relative;
	border: 1px solid var(--border);
	background: linear-gradient(165deg, rgba(95,216,232,0.05), rgba(6,18,22,0.55));
	backdrop-filter: blur(6px);
	padding: 1.5rem 1.6rem;
	margin-bottom: 2rem;
	clip-path: polygon(var(--corner) 0, 100% 0, 100% calc(100% - var(--corner)), calc(100% - var(--corner)) 100%, 0 100%, 0 var(--corner));
}
.sysmap::before { content: ''; position: absolute; top: 0; left: var(--corner); right: var(--corner); height: 1px; background: linear-gradient(90deg, transparent, var(--teal-soft), transparent); }
.sysmap-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; font-family: var(--display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.sysmap-head .left { display: flex; align-items: center; gap: 0.5rem; color: var(--text); }
.sysmap-head .left .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 6px 2px var(--teal-glow); }
.sysmap-head .right { color: var(--text-faint); font-weight: 500; }

.bars {
	position: relative; display: flex; align-items: center; gap: 3px; height: 52px; max-width: 58%;
	margin-bottom: 1.3rem; padding-bottom: 0.6rem; overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 65%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 65%, transparent 100%);
}
@media screen and (max-width: 560px) { .bars { max-width: 100%; } }
.bars span { flex: 1; min-width: 2px; border-radius: 5px 5px 2px 2px; background: linear-gradient(to top, var(--teal-dim), var(--teal)); opacity: 0.9; transition: height 0.6s ease; }
.bars span:nth-child(5n+1) { background: linear-gradient(to top, var(--orange-dim), var(--orange)); }
.bars span:nth-child(7n+2) { opacity: 0.55; }
.bars .playhead { position: absolute; top: 0; bottom: 0.6rem; width: 2px; background: linear-gradient(to bottom, transparent, var(--teal), transparent); box-shadow: 0 0 10px 2px var(--teal-glow); animation: sweep 5s ease-in-out infinite; pointer-events: none; }
@keyframes sweep { 0% { left: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.sysmap-divider { border-bottom: 1px solid var(--border-soft); margin: -0.3rem 0 1.1rem; }
.sysmap-stats { display: flex; gap: 2.75rem; flex-wrap: wrap; }
@media screen and (max-width: 560px) { .sysmap-stats { flex-direction: column; gap: 1rem; } }
.stat-label { font-family: var(--display); font-weight: 500; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.35rem; }
.stat-value { font-family: var(--display); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em; text-transform: uppercase; color: var(--text); margin-bottom: 0.2rem; }
.stat-sub { font-family: var(--display); font-weight: 500; font-size: 0.64rem; letter-spacing: 0.06em; color: var(--teal); text-transform: uppercase; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }

.btn {
	font-family: var(--display); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
	padding: 0.9rem 1.5rem; display: inline-flex; align-items: center; gap: 0.6rem;
	border: 1px solid var(--border); color: var(--text); background: var(--bg-panel);
	clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
	position: relative;
}
.btn:hover { transform: translateY(-2px); border-color: var(--teal-soft); color: var(--teal); box-shadow: 0 0 18px rgba(95,216,232,0.2); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #04231f; font-weight: 700; }
.btn.primary:hover { color: #04231f; box-shadow: 0 0 24px rgba(95,216,232,0.5); }
.btn.primary .icon-svg.stroke { stroke: #04231f; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 2.5rem; border-top: 1px solid var(--border-soft); padding-top: 1.4rem; }
.hero-meta .meta-label { display: flex; align-items: center; font-family: var(--display); font-weight: 500; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.3rem; }
.hero-meta .meta-value { font-size: 0.88rem; color: var(--text); }

/* hollow flashing ring, sits to the LEFT of "Current Assignment" */
.ping-ring {
	display: inline-block; width: 7px; height: 7px; margin-right: 0.5rem;
	border: 1.5px solid var(--orange); border-radius: 50%;
	animation: ping-pulse 2.2s ease-out infinite;
}
@keyframes ping-pulse {
	0% { transform: scale(0.7); box-shadow: 0 0 0 0 rgba(240,167,66,0.55); }
	70% { transform: scale(1.3); box-shadow: 0 0 0 6px rgba(240,167,66,0); }
	100% { transform: scale(0.7); box-shadow: 0 0 0 0 rgba(240,167,66,0); }
}

/* ---- hero portrait + radar + orbiting chips/stars ---- */
.hero-right { position: relative; display: flex; align-items: center; justify-content: center; }

.radar-rings { position: absolute; top: 50%; left: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); pointer-events: none; z-index: 0; opacity: 0.5; }
.radar-rings svg { width: 100%; height: 100%; }
.radar-rings circle { fill: none; stroke: rgba(95, 216, 232, 0.16); stroke-width: 1; }
.radar-rings circle.dashed { stroke-dasharray: 4 8; stroke: rgba(95, 216, 232, 0.22); }

.hero-portrait { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1 / 1; margin: 0 auto; z-index: 2; }
.portrait-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--teal-soft); box-shadow: 0 0 0 1px rgba(95,216,232,0.08), 0 0 70px rgba(95,216,232,0.22); }
.portrait-ring::before { content: ''; position: absolute; inset: -18px; border-radius: 50%; border: 1px dashed rgba(95,216,232,0.28); animation: spin 50s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.portrait-photo { position: absolute; inset: 10px; border-radius: 50%; overflow: hidden; border: 1px solid var(--border); }
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; }

/* diamonds — orbit continuously via JS, always visible (no clipping ancestor) */
.radar-diamond, .radar-diamond-blue {
	position: absolute; top: 50%; left: 50%;
	width: 9px; height: 9px; transform: translate(-50%, -50%) rotate(45deg);
	z-index: 3;
}
.radar-diamond { background: var(--orange); box-shadow: 0 0 10px 2px rgba(240,167,66,0.5); }
.radar-diamond-blue { background: var(--teal); box-shadow: 0 0 10px 2px rgba(95,216,232,0.5); }

/* status chips — modern cut-corner style, colored left accent bar */
.hud-chip {
	position: absolute; top: 50%; left: 50%;
	font-family: var(--display); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase;
	background: linear-gradient(160deg, rgba(95,216,232,0.10), rgba(6,18,22,0.92));
	border: 1px solid var(--border);
	border-left: 3px solid var(--text-faint);
	padding: 0.5rem 0.85rem 0.5rem 0.7rem;
	box-shadow: 0 8px 24px rgba(0,0,0,0.45);
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
	z-index: 4;
	width: max-content;
}
.hud-chip .chip-label { color: var(--text-faint); display: block; margin-bottom: 0.15rem; font-weight: 500; }
.hud-chip .chip-value { color: var(--text); font-weight: 700; }
.hud-chip.accent { border-left-color: var(--orange); }
.hud-chip.accent .chip-value { color: var(--orange); }
.hud-chip.teal { border-left-color: var(--teal); }
.hud-chip.teal .chip-value { color: var(--teal); }
.hud-chip.chip-ident { border-left-color: rgba(255,255,255,0.6); }

/* fixed/steady chips — Discipline (upper-left) and Ident (lower-right), never move */
.hud-chip.chip-discipline { transform: translate(calc(-50% - 165px), calc(-50% - 145px)); }
.hud-chip.chip-ident { transform: translate(calc(-50% + 175px), calc(-50% + 150px)); }

@media screen and (max-width: 980px) {
	.hero-portrait { max-width: 280px; margin-top: 1rem; }
	.hud-chip { font-size: 0.56rem; padding: 0.4rem 0.6rem 0.4rem 0.5rem; }
	.radar-rings { width: 620px; height: 620px; }
	.hud-chip.chip-discipline { transform: translate(calc(-50% - 115px), calc(-50% - 105px)); }
	.hud-chip.chip-ident { transform: translate(calc(-50% + 125px), calc(-50% + 110px)); }
}

/* ============================================================
   PROJECT ARCHIVE
   ============================================================ */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media screen and (max-width: 900px) { .project-grid { grid-template-columns: 1fr; } }

/* Featured project — spans the full grid row, image+content side by side */
.project-card.featured { grid-column: 1 / -1; flex-direction: row; }
.project-card.featured .thumb { width: 42%; height: auto; flex-shrink: 0; }
.project-card.featured .project-body { flex: 1; padding: 2rem 2.2rem; }
.project-card.featured .project-body h3 { font-size: 1.6rem; }
@media screen and (max-width: 900px) {
	.project-card.featured { flex-direction: column; }
	.project-card.featured .thumb { width: 100%; height: 240px; }
}

/* award/placement badge — gold, replaces the plain status dot for hackathon results */
.thumb-status.award { color: var(--orange); gap: 0.35rem; }
.thumb-status.award svg { filter: drop-shadow(0 0 4px rgba(240,167,66,0.6)); }

/* small orange section labels inside long-form detail pages (Inspiration, What It Does, etc.) */
.detail-subhead {
	font-family: var(--display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em;
	text-transform: uppercase; color: var(--orange); margin: 2rem 0 0.8rem;
}
.detail-subhead:first-of-type { margin-top: 0; }

.project-card {
	border: 1px solid var(--border);
	background: linear-gradient(165deg, rgba(95,216,232,0.05), rgba(6,18,22,0.55));
	overflow: hidden; display: flex; flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	clip-path: polygon(var(--corner) 0, 100% 0, 100% calc(100% - var(--corner)), calc(100% - var(--corner)) 100%, 0 100%, 0 var(--corner));
}
.project-card:hover { transform: translateY(-4px); border-color: var(--teal-soft); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }

.project-card .thumb {
	position: relative; height: 240px;
	background: linear-gradient(160deg, rgba(95,216,232,0.06), rgba(4,10,13,0.95));
	display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.project-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 0.6rem; transition: transform 0.4s ease; }
.project-card:hover .thumb img { transform: scale(1.03); }
.project-card .thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 42%); pointer-events: none; }

.slider-caption { font-family: var(--display); font-size: 0.78rem; color: var(--teal); text-align: center; margin: 1.1rem 0 0.4rem; min-height: 1.1em; }

.thumb-tag { position: absolute; left: 0.9rem; bottom: 0.9rem; z-index: 2; font-family: var(--display); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.thumb-status { position: absolute; right: 0.9rem; bottom: 0.9rem; z-index: 2; font-family: var(--display); font-weight: 600; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; display: flex; align-items: center; gap: 0.4rem; color: #4ade80; }
.thumb-status .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px 2px rgba(74,222,128,0.6); animation: pulse-dot 1.6s ease-in-out infinite; }

.thumb-status.pending { color: var(--orange); }
.thumb-status.pending .dot { background: var(--orange); box-shadow: 0 0 6px 2px rgba(240,167,66,0.6); animation: pulse-dot 1.6s ease-in-out infinite; }

.status-pending-pill {
	font-family: var(--display); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--text-faint); border: 1px dashed var(--border); padding: 0.6rem 1.1rem;
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
	cursor: default;
}

.pcb-thumb-svg { width: 100%; height: 100%; }

.project-body { padding: 1.7rem 1.8rem 1.9rem; display: flex; flex-direction: column; gap: 0.95rem; flex: 1; }
.project-cats { font-family: var(--display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.project-body h3 { font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: 0.005em; text-transform: uppercase; color: var(--text); }
.project-desc { font-size: 0.88rem; color: var(--text-dim); }

.project-list { display: flex; flex-direction: column; gap: 0.55rem; margin: 0.2rem 0; }
.project-list li { display: flex; gap: 0.7rem; font-size: 0.83rem; color: var(--text-dim); line-height: 1.5; }
.project-list li .n { font-family: var(--display); font-weight: 700; color: var(--teal); flex-shrink: 0; font-size: 0.75rem; padding-top: 0.05rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.3rem; }
.chip { font-family: var(--display); font-weight: 500; font-size: 0.64rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.32rem 0.75rem; border-radius: 999px; border: 1px solid var(--border); color: var(--teal); background: rgba(95,216,232,0.05); }

.card-footer { display: flex; align-items: center; justify-content: flex-end; margin-top: auto; padding-top: 0.6rem; }
.open-file {
	font-family: var(--display); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--teal); border: 1px solid var(--teal-soft); background: rgba(95,216,232,0.08); padding: 0.6rem 1.1rem;
	box-shadow: 0 0 14px rgba(95,216,232,0.25);
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
	transition: all 0.2s ease;
}
.open-file:hover { color: #04231f; background: var(--teal); box-shadow: 0 0 22px rgba(95,216,232,0.5); transform: translateY(-2px); }

.project-overview.is-hidden { display: none; }
.project-detail { display: none; }
.project-detail.active { display: block; position: fixed; inset: 0; z-index: 300; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; animation: fade-in 0.3s ease; }
.project-detail.active::before { content: ''; position: fixed; inset: 0; z-index: -1; background-image: linear-gradient(rgba(95,216,232,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(95,216,232,0.05) 1px, transparent 1px); background-size: 42px 42px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.detail-shell { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem; }
@media screen and (max-width: 736px) { .detail-shell { padding: 1.5rem 1.1rem; } }

.detail-panel { border: none; border-radius: 14px; background: transparent; padding: 2.5rem; }
@media screen and (max-width: 736px) { .detail-panel { padding: 1.5rem; } }

.detail-back {
	display: inline-flex; align-items: center; gap: 0.6rem;
	font-family: var(--display); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--text); background: var(--bg-panel); border: 1px solid var(--border);
	padding: 0.85rem 1.4rem; margin-bottom: 2rem;
	clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.detail-back:hover { transform: translateY(-2px); border-color: var(--teal-soft); color: var(--teal); box-shadow: 0 0 18px rgba(95,216,232,0.2); }

.detail-title { font-family: var(--display); font-weight: 700; font-size: 3rem; text-transform: uppercase; letter-spacing: 0.01em; color: var(--text); margin-bottom: 0.9rem; text-align: left; }

.detail-panel .project-cats { display: block; margin-top: -0.5rem; margin-bottom: 1.1rem; text-align: left; }
.detail-panel .chip-row { margin-bottom: 1.8rem; justify-content: flex-start; text-align: left; }

.detail-media {
	max-width: 560px; margin: 0 auto 1.6rem;
	border-radius: 10px; overflow: hidden; border: 1px solid var(--border-soft);
	background: #03080a; display: flex; align-items: center; justify-content: center;
}
.detail-media img, .detail-media video { width: 100%; height: auto; max-height: 460px; object-fit: contain; display: block; }

.detail-caption { font-family: var(--display); font-size: 0.78rem; color: var(--text-faint); text-align: center; margin: -1rem 0 1.8rem; }
.iteration-slider .detail-caption { margin-top: 1.1rem; margin-bottom: 0; }
.detail-media-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.detail-media-row .detail-media-col {
    flex: 1 1 600px;
    max-width: 650px;
}

.detail-media-row .detail-media {
    width: 100%;
    max-width: 100%;
    margin: 0 0 0.7rem;
}

.detail-media-row .detail-media img {
    width: 100%;
    max-height: 1000px;
    object-fit: contain;
}

.detail-media-row .media-caption {
    text-align: center;
    font-family: var(--display);
    font-size: 0.78rem;
    color: var(--text-faint);
    margin: 0;
}

.detail-media-row-caption {
    text-align: center;
    font-family: var(--display);
    font-size: 0.78rem;
    color: var(--text-faint);
    margin: 0 0 1.8rem;
}

.detail-desc { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 1.4rem; line-height: 1.7; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; justify-content: center; }
.detail-copyright { text-align: center; margin-top: 2.5rem; font-family: var(--display); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }

.iteration-slider { position: relative; max-width: 560px; margin: 1.8rem auto; }
.slider-track { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: rgba(0,0,0,0.35); border: 1px solid var(--border-soft); }
.slider-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.slider-img.active { opacity: 1; pointer-events: auto; }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 0.9rem; }
.slider-btn { font-family: var(--display); font-weight: 600; padding: 0.45rem 1.1rem; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 999px; transition: all 0.25s ease; }
.slider-btn:hover { color: var(--teal); border-color: var(--teal-soft); box-shadow: 0 0 12px rgba(95,216,232,0.2); }
.slider-counter { font-family: var(--display); font-size: 0.74rem; color: var(--text-faint); }

/* ============================================================
   EXPERIENCE LOG
   ============================================================ */
.timeline { position: relative; display: flex; flex-direction: column; }
.timeline-item { display: grid; grid-template-columns: 3.4rem 9rem 1fr; gap: 1.6rem; padding: 1.9rem 0; border-top: 1px solid var(--border-soft); position: relative; }
.timeline-item:first-child { border-top: 1px solid var(--border-soft); }
@media screen and (max-width: 800px) {
	.timeline-item { grid-template-columns: 2.4rem 1fr; }
	.timeline-item .time-col { grid-column: 2; order: 2; margin-bottom: 0.3rem; }
	.timeline-item .content-col { grid-column: 2; order: 3; }
	.timeline-item .idx-col { grid-row: 1 / span 2; }
}
.idx-col { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.idx-col .idx-num { font-family: var(--display); font-weight: 700; font-size: 0.88rem; color: var(--teal); }
.idx-col .idx-line { width: 1px; flex: 1; background: linear-gradient(to bottom, var(--teal-soft), transparent); min-height: 1.5rem; }

/* time-col nudged down slightly so its date lines up with the role title, not the company line */
.time-col .time-label { display: block; height: 1rem; line-height: 1rem; overflow: hidden; font-family: var(--display); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.4rem; }
.time-col .time-value { font-family: var(--display); font-weight: 500; font-size: 0.84rem; color: var(--text-dim); line-height: 1; }
.content-col .co-line { display: block; height: 1rem; line-height: 1rem; overflow: hidden; font-family: var(--display); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.4rem; }
.content-col h3 { font-family: var(--display); font-weight: 700; font-size: 1.18rem; text-transform: uppercase; letter-spacing: 0.01em; color: var(--text); margin-bottom: 0.8rem; line-height: 1; }
.content-col ul { display: flex; flex-direction: column; gap: 0.45rem; }
.content-col ul li { display: flex; gap: 0.6rem; font-size: 0.88rem; color: var(--text-dim); line-height: 1.5; }
.content-col ul li .arrow { color: var(--teal); flex-shrink: 0; }

/* ============================================================
   SYSTEMS & TOOLS
   ============================================================ */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media screen and (max-width: 900px) { .tools-grid { grid-template-columns: 1fr; } }

.tool-module {
	position: relative;
	border: 1px solid var(--border);
	background: linear-gradient(165deg, rgba(95,216,232,0.05), rgba(6,18,22,0.55));
	padding: 1.8rem 1.8rem 2rem;
	clip-path: polygon(var(--corner) 0, 100% 0, 100% calc(100% - var(--corner)), calc(100% - var(--corner)) 100%, 0 100%, 0 var(--corner));
}
.tool-module::before { content: ''; position: absolute; top: 0; left: var(--corner); right: var(--corner); height: 1px; background: linear-gradient(90deg, transparent, var(--teal-soft), transparent); }
.mod-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.mod-id { font-family: var(--display); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.1em; color: var(--text-faint); text-transform: uppercase; }
.mod-diamond { width: 8px; height: 8px; background: var(--orange); transform: rotate(45deg); }
.tool-module h3 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.01em; text-transform: uppercase; color: var(--text); margin: 0.2rem 0 0.9rem; }
.mod-bar { height: 2px; border-radius: 2px; background: linear-gradient(to right, var(--teal), var(--orange)); margin-bottom: 1.3rem; }
.mod-tags { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.mod-tags .chip { color: var(--text-dim); border-color: var(--border); background: transparent; }
.mod-tags .chip:hover { color: var(--teal); border-color: var(--teal-soft); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-panel {
	position: relative;
	border: 1px solid var(--border);
	background: linear-gradient(135deg, rgba(95,216,232,0.08), rgba(4,9,13,0.5));
	padding: 3.5rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center;
	overflow: hidden;
	clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
}
.contact-panel::before { content: ''; position: absolute; top: -40%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(95,216,232,0.18), transparent 65%); pointer-events: none; }
.contact-panel::after { content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--teal-soft), transparent); }
@media screen and (max-width: 900px) { .contact-panel { grid-template-columns: 1fr; padding: 2.2rem 1.6rem; } }

.contact-heading .line1 { font-family: var(--display); font-weight: 700; font-size: 3.3rem; text-transform: uppercase; color: var(--text); line-height: 1.1; }
.contact-heading .line2 { font-family: var(--display); font-weight: 700; font-size: 3.3rem; text-transform: uppercase; line-height: 1.1; color: transparent; -webkit-text-stroke: 1.5px var(--teal); text-shadow: 0 0 30px rgba(95,216,232,0.4); }
@media screen and (max-width: 1100px) { .contact-heading .line1, .contact-heading .line2 { font-size: 2.5rem; } }
@media screen and (max-width: 736px) { .contact-heading .line1, .contact-heading .line2 { font-size: 1.9rem; } }
.contact-side p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.6rem; max-width: 26rem; }
.contact-side .hero-actions { margin-bottom: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { padding: 2.2rem 0 2.6rem; position: relative; z-index: 2; }
#site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.footer-left { font-family: var(--display); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.footer-center { font-family: var(--display); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); text-shadow: 0 0 14px rgba(95,216,232,0.35); flex: 1; text-align: center; }
.footer-return { font-family: var(--display); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); border: 1px solid var(--border); padding: 0.55rem 1.1rem; border-radius: 999px; background: transparent; transition: all 0.2s ease; }
.footer-return:hover { color: var(--teal); border-color: var(--teal-soft); box-shadow: 0 0 14px rgba(95,216,232,0.2); }
@media screen and (max-width: 700px) { #site-footer .wrap { flex-direction: column; text-align: center; } .footer-center { order: -1; } }
