:root {
	--portfolio-ink: #16202a;
	--portfolio-blue: #087ea4;
	--portfolio-teal: #00a896;
	--portfolio-pale: #eef8fa;
}

html { scroll-behavior: smooth; }
body { color: var(--portfolio-ink); }

#intro .eyebrow, .project-kicker, .section-label {
	color: #9ce8df;
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-size: 0.8rem;
	font-style: normal;
	font-weight: 900;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
#intro h1 { margin-bottom: 1rem; }
#intro p { max-width: 48rem; }
#intro .actions { margin-top: 2rem; }
#intro .button.primary { background: #fff; box-shadow: none; color: var(--portfolio-ink) !important; }

.nav-identity { padding: 1.5rem 1.25rem; }
.nav-identity a { border: 0; color: #fff; display: block; }
.nav-identity strong, .nav-identity span { display: block; }
.nav-identity span { color: rgba(255,255,255,.6); font-size: .72rem; letter-spacing: .12em; margin-top: .35rem; text-transform: uppercase; }

.project-kicker, .section-label { color: var(--portfolio-blue); display: block; margin-bottom: 1rem; }
.project-feature > p { margin-left: auto; margin-right: auto; max-width: 58rem; text-align: center; }
.project-visual { background: #f2f5f8; border: 1px solid #dce4e7; display: block; margin: 2rem 0; overflow: hidden; }
.project-visual img { display: block; height: auto; transition: transform .35s ease; width: 100%; }
.project-visual:hover img { transform: scale(1.015); }
.architecture-preview { align-items: stretch; background: var(--portfolio-pale); display: flex; gap: 1rem; margin: 2rem 0; padding: 2rem; }
.flow-node { align-content: center; background: #fff; border: 1px solid #cfe2e6; flex: 1; font-family: "Source Sans Pro", Helvetica, sans-serif; font-weight: 900; padding: 1.4rem .8rem; text-align: center; text-transform: uppercase; }
.flow-node small { color: #65747c; display: block; font-size: .68rem; font-weight: 600; letter-spacing: .05em; margin-top: .35rem; }
.flow-node.accent { background: var(--portfolio-blue); border-color: var(--portfolio-blue); color: #fff; }
.flow-node.accent small { color: rgba(255,255,255,.8); }
.flow-arrow { align-content: center; color: var(--portfolio-teal); font-size: 1.75rem; }

.metric-grid { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); margin: 2rem 0; background: #dce4e7; }
.metric-grid div { background: #fff; padding: 1.5rem .75rem; text-align: center; }
.metric-grid strong, .metric-grid span { display: block; }
.metric-grid strong { color: var(--portfolio-blue); font-size: 2.25rem; line-height: 1; }
.metric-grid span { color: #53616a; font-size: .7rem; letter-spacing: .08em; margin-top: .6rem; text-transform: uppercase; }

.tech-tags { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; list-style: none; margin: 2rem 0; padding: 0; }
.tech-tags li { background: var(--portfolio-pale); border: 1px solid #cfe2e6; border-radius: 2rem; font-family: "Source Sans Pro", Helvetica, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .05em; padding: .35rem .8rem; }
.section-block { scroll-margin-top: 2rem; }
.skill-grid, .schema-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
.skill-grid > div, .schema-grid > div { border-top: 3px solid var(--portfolio-blue); padding-top: 1rem; }
.skill-grid p, .schema-grid p { margin-bottom: 0; }
.contact-cta { padding: 4rem; }
.contact-cta h2 { font-size: 2rem; }

.project-case .lead { font-size: 1.25rem; line-height: 1.8; text-align: center; }
.project-case h2 { margin-top: 3.5rem; }
.evidence-figure { margin: 2rem 0; }
.evidence-figure a { background: #f2f5f8; border: 1px solid #dce4e7; display: block; padding: .5rem; }
.evidence-figure img { display: block; height: auto; width: 100%; }
.evidence-figure figcaption { color: #65747c; font-size: .82rem; font-style: italic; line-height: 1.5; padding: .75rem .25rem 0; text-align: center; }
.architecture-figure a { max-height: 52rem; overflow: auto; }
.architecture-figure img { min-width: 58rem; }
.evidence-gallery { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.pipeline-map { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); margin: 2.5rem 0; }
.pipeline-map section { background: var(--portfolio-pale); border-top: 4px solid var(--portfolio-teal); padding: 1.25rem; text-align: center; }
.pipeline-map section.pipeline-core { background: var(--portfolio-blue); border-color: var(--portfolio-blue); color: #fff; }
.pipeline-map h3 { font-size: 1rem; }
.pipeline-map p { font-size: .85rem; margin: .8rem 0; text-align: center; }
.pipeline-map span { color: var(--portfolio-teal); }
.final-actions { margin-top: 4rem; }

@media screen and (min-width: 981px) {
	#wrapper { padding-left: 15rem; }
	#nav {
		background: #18252f;
		display: flex;
		flex-direction: column;
		height: 100vh;
		left: 0;
		margin: 0;
		max-width: 15rem;
		position: fixed;
		top: 0;
		width: 15rem;
		z-index: 10000;
	}
	#nav ul.links { display: block; flex: none; margin-top: auto; width: 100%; }
	#nav ul.links li { border-top: 1px solid rgba(255,255,255,.08); display: block; }
	#nav ul.links li a { height: auto; line-height: 1.3; padding: 1rem 1.25rem; }
	#nav ul.links li.active a { background: var(--portfolio-blue); color: #fff; }
	#nav ul.icons { justify-content: flex-start; margin-bottom: 1rem; padding: 1rem 1.25rem; width: 100%; }
	#main, #footer { max-width: 72rem; }
}

@media screen and (max-width: 980px) {
	.nav-identity { display: none; }
}

@media screen and (max-width: 736px) {
	.architecture-preview, .pipeline-map { display: grid; grid-template-columns: 1fr; }
	.architecture-figure img { min-width: 48rem; }
	.flow-arrow { transform: rotate(90deg); }
	.metric-grid { grid-template-columns: repeat(2, 1fr); }
	.skill-grid, .schema-grid { grid-template-columns: 1fr; }
	.contact-cta { padding: 3rem 2rem; }
}
