/**
 * Barrettology2: layout for Skills + Experience narrative
 * Builds on assets/css/style.css
 */

/* ---------- Skip link & focus (accessibility) ---------- */
.skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	left: 12px;
	top: 12px;
	z-index: 10000;
	width: auto;
	height: auto;
	padding: 12px 18px;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
	background: #111;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	border-radius: 4px;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #EF4836;
}

#main-content {
	outline: none;
}

#main-content:focus-visible {
	outline: 3px solid #EF4836;
	outline-offset: 2px;
}

#main-content section[id] {
	scroll-margin-top: 72px;
}

#main-content a:focus-visible,
#footer a:focus-visible {
	outline: 2px solid #EF4836;
	outline-offset: 2px;
}

.navbar-custom .navbar-brand:focus-visible,
.navbar-custom .nav > li > a:focus-visible,
.navbar-toggle:focus-visible {
	outline: 2px solid #EF4836;
	outline-offset: 2px;
}

.widget-social li a:focus-visible {
	outline-offset: 2px;
}

/* ---------- Mobile / global hygiene ---------- */
html {
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

body {
	overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.wow {
		visibility: visible !important;
		-webkit-animation: none !important;
		animation: none !important;
	}
}

img {
	height: auto;
}

/* Hero: headline above image; black type on light background */
#intro.intro-stacked {
	padding: 0;
	overflow: visible;
}

#intro .intro-copy {
	background: #ffffff;
	padding: 88px 0 32px;
	text-align: center;
}

#intro .intro-copy h1 {
	margin: 0;
	line-height: 1.12;
}

#intro .intro-copy h1,
#intro .intro-copy h2,
#intro .intro-copy h4,
#intro .intro-copy h5,
#intro .intro-copy h6 {
	color: #111;
}

#intro .hello {
	margin: 0;
}

#intro .intro-tagline {
	margin: 12px 0 0;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.35;
	color: #444;
	letter-spacing: 0.02em;
}

#intro-visual.intro-visual {
	position: relative;
	overflow: hidden;
	min-height: 420px;
	height: 58vh;
	max-height: 720px;
}

/* Stylized cartoon portrait, pastel hero, soft grade (no hot accent wash) */
#intro-visual .backstretch img {
	-webkit-filter: brightness(1.02) contrast(1.03) saturate(0.94);
	filter: brightness(1.02) contrast(1.03) saturate(0.94);
}

#intro-visual::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	pointer-events: none;
	/* Complementary pastels: cool sage + warm cream (avoid pink/coral cast) */
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0.08) 0%,
		rgba(186, 210, 200, 0.07) 42%,
		rgba(245, 242, 236, 0.06) 100%
	);
}

/* Skills */
#skills .headline {
	margin-bottom: 48px;
}

/* Scroll-in: opacity only, short duration, calmer than bounce */
#skills .wow.animated {
	-webkit-animation-timing-function: ease-out;
	animation-timing-function: ease-out;
}

.skill-column {
	margin-bottom: 36px;
}

.skill-column h4 {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #EF4836;
	margin-bottom: 14px;
}

.skill-column h4 i {
	margin-right: 8px;
	color: #222;
}

.skill-pills {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.skill-pills li {
	display: inline-block;
	padding: 8px 14px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 13px;
	line-height: 1.3;
	color: #444;
}

.callout .skill-pills li {
	background: #fafafa;
}

/* Experience timeline */
#experience .exp-intro {
	margin-bottom: 12px;
}

#experience .exp-intro .headline {
	margin-bottom: 20px;
}

#experience .exp-intro h2 {
	margin-bottom: 8px;
}

.exp-lead {
	font-size: 16px;
	max-width: 720px;
	color: #666;
}

.resume-items.exp-timeline {
	margin-bottom: 0;
}

.resume-items.exp-timeline .resume-place {
	padding-bottom: 32px;
	margin-bottom: 32px;
	border-bottom: 1px solid #e8e8e8;
}

.resume-items.exp-timeline .resume-place:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.resume-items.exp-timeline h4 {
	font-size: 18px;
	text-transform: none;
	margin-bottom: 4px;
}

.exp-meta {
	font-size: 13px;
	color: #888;
	margin-bottom: 12px;
}

.exp-meta i {
	margin-right: 6px;
	color: #C4C4C4;
}

.exp-meta-secondary {
	margin-top: 18px;
	margin-bottom: 8px;
}

.exp-highlights {
	padding-left: 18px;
	margin: 0;
	color: #545454;
}

.exp-highlights li {
	margin-bottom: 8px;
}

.exp-logos-strip {
	margin-top: 56px;
	padding: 44px 28px 40px;
	background: linear-gradient(165deg, #fafbfc 0%, #ffffff 55%, #f8f9fa 100%);
	border-radius: 16px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.04),
		0 12px 40px rgba(0, 0, 0, 0.04);
	position: relative;
	overflow: hidden;
}

.exp-logos-strip::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, rgba(239, 72, 54, 0.35), transparent);
	pointer-events: none;
}

.exp-logos-headline {
	text-align: center;
	margin: 0 auto 36px;
	max-width: 520px;
}

.exp-logos-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #EF4836;
	margin: 0 0 10px;
}

.exp-logos-title {
	font-size: 22px;
	font-weight: 700;
	color: #111;
	margin: 0 0 10px;
	letter-spacing: -0.02em;
}

.exp-logos-sub {
	font-size: 15px;
	line-height: 1.55;
	color: #6b6b6b;
	margin: 0;
}

ul.exp-logos-grid {
	list-style: none;
	padding: 0;
	margin: 0;
}

.exp-logos-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	align-items: stretch;
}

.exp-logo-card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 104px;
	padding: 20px 16px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 12px;
	transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.exp-logo-card:hover {
	border-color: rgba(239, 72, 54, 0.22);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
	transform: translateY(-3px);
}

.exp-logo-card img {
	max-height: 52px;
	width: auto;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	filter: grayscale(0.15);
	opacity: 0.92;
	transition: filter 0.25s ease, opacity 0.25s ease;
}

.exp-logo-card:hover img {
	filter: grayscale(0);
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.exp-logo-card {
		transition: none;
	}

	.exp-logo-card:hover {
		transform: none;
	}

	.exp-logo-card img {
		transition: none;
	}
}

@media (max-width: 600px) {
	.exp-logos-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.exp-logo-card {
		min-height: 88px;
		padding: 16px 12px;
	}
}

/* Less space between Organizations scroller and Why quote */
#experience.callout {
	padding-bottom: 52px;
}

#why.callout {
	padding-top: 52px;
}

.profile-photo-mobile {
	margin-bottom: 28px;
}

.profile-photo-mobile .avatar {
	display: inline-block;
	max-width: 220px;
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Tablet & phone ---------- */
@media (max-width: 991px) {
	.section,
	.callout {
		padding: 80px 0;
	}

	#experience.callout {
		padding-bottom: 44px;
	}

	#why.callout {
		padding-top: 44px;
	}

	.exp-logos-strip {
		margin-top: 44px;
		padding: 32px 18px 32px;
	}

	.exp-logos-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	#intro .intro-copy {
		padding: 80px 0 28px;
	}

	#intro-visual.intro-visual {
		min-height: 300px;
		height: 48vh;
		max-height: 640px;
	}

	.hello {
		margin: 0;
	}

	#intro h1 {
		font-size: 34px;
		line-height: 1.12;
		margin: 0 auto;
		max-width: 20ch;
	}

	#intro .intro-tagline {
		font-size: 15px;
		padding: 0 16px;
		max-width: 36ch;
		margin-left: auto;
		margin-right: auto;
	}

	.section,
	.callout {
		padding: 56px 0;
	}

	#experience.callout {
		padding-bottom: 36px;
	}

	#why.callout {
		padding-top: 36px;
	}

	.headline {
		margin-bottom: 32px;
	}

	h2 {
		font-size: 26px;
		line-height: 1.25;
	}

	h3 {
		font-size: 18px;
	}

	h3.exp-logos-title {
		font-size: 20px;
	}

	/* Readable body copy: override .wrapper { text-align: center } from style.css */
	#profile .col-md-6 p,
	#profile .col-sm-12 p,
	#skills .skill-column,
	#experience .resume-items,
	#experience .exp-lead,
	#why blockquote p,
	#why blockquote footer {
		text-align: left;
	}

	#profile .headline,
	#skills .headline,
	#experience .headline,
	.exp-logos-headline {
		text-align: center;
	}

	#profile-contact .profile-item h5 {
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	#profile-contact .profile-item a {
		display: inline-flex;
		align-items: center;
		max-width: 100%;
		min-height: 44px;
		padding: 8px 2px;
		box-sizing: border-box;
	}

	.navbar-nav > li > a {
		min-height: 44px;
		display: flex;
		align-items: center;
	}

	.widget-social li a {
		min-width: 44px;
		min-height: 44px;
		width: 44px;
		height: 44px;
		line-height: 44px;
	}

	/* Touch-friendly nav + safe area (notched devices) */
	.navbar-fixed-top > .container {
		padding-left: max(15px, env(safe-area-inset-left, 0px));
		padding-right: max(15px, env(safe-area-inset-right, 0px));
	}

	.navbar-custom .navbar-toggle {
		margin-top: 8px;
		margin-bottom: 8px;
		padding: 11px 12px;
	}

	.navbar-custom .navbar-nav > li > a {
		padding-top: 14px;
		padding-bottom: 14px;
		line-height: 1.3;
	}

	.navbar-custom .navbar-collapse {
		max-height: none;
		box-shadow: none;
		border-top: 1px solid rgba(0, 0, 0, 0.06);
		margin-top: 8px;
		padding-bottom: 8px;
	}

	.skill-column {
		margin-bottom: 28px;
	}

	.skill-pills {
		gap: 6px;
	}

	.skill-pills li {
		padding: 10px 12px;
		min-height: 40px;
		display: inline-flex;
		align-items: center;
	}

	#experience .exp-intro {
		margin-bottom: 8px;
	}

	#experience .exp-intro .headline {
		margin-bottom: 16px;
	}

	.exp-lead {
		font-size: 15px;
		line-height: 1.55;
	}

	.resume-items.exp-timeline .resume-place {
		padding-bottom: 24px;
		margin-bottom: 24px;
	}

	.resume-items.exp-timeline h4 {
		font-size: 17px;
		line-height: 1.35;
	}

	.exp-highlights {
		padding-left: 16px;
	}

	#why blockquote {
		margin: 0;
		padding: 0 4px;
		font-size: 17px;
		line-height: 1.55;
	}

	#why blockquote footer {
		margin-top: 12px;
	}

	#footer {
		padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
	}

	.exp-logos-strip {
		padding: 28px 14px 28px;
	}
}

@media (max-width: 480px) {
	#intro h1 {
		font-size: 28px;
		max-width: none;
	}

	h2 {
		font-size: 22px;
	}

	.skill-pills li {
		font-size: 12px;
	}
}

/* Very small screens: flexbox gap fallback */
@supports not (gap: 8px) {
	.skill-pills li {
		margin: 0 4px 8px 0;
	}
}
