/*
 * Ayman's Digital 2.0: About, Experience, Projects (list and case study) and Services pages of
 * the public portfolio. Builds on portfolio/base.css.
 */

.pf-plain { margin: 0; padding: 0; list-style: none; }
.pf-plain > li { margin: 0; }
.pf-muted { color: var(--pf-muted); }

/* ---------- About ---------- */

.pf-about-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}
.pf-about-hero__role { margin-top: 14px; color: var(--pf-accent); font-size: clamp(17px, 1.8vw, 21px); font-weight: 500; line-height: 1.45; }
.pf-about-hero__position {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-top: 14px;
	color: var(--pf-text);
	font-size: 15px;
	font-weight: 500;
}
.pf-about-hero__position i { color: var(--pf-accent); }

.pf-social { display: flex; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.pf-social li { margin: 0; }
.pf-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--pf-border);
	border-radius: 50%;
	background: var(--pf-surface);
	color: var(--pf-text);
	text-decoration: none;
	transition: color .2s var(--pf-ease), border-color .2s var(--pf-ease), transform .2s var(--pf-ease);
}
.pf-social a:hover { color: var(--pf-accent); border-color: var(--pf-border-strong); transform: translateY(-2px); }

.pf-about-card {
	position: relative;
	padding: 28px;
	border: 1px solid var(--pf-border);
	border-radius: 26px;
	background: linear-gradient(160deg, var(--pf-surface-2), var(--pf-surface) 60%);
	box-shadow: var(--pf-shadow);
}
.pf-about-card__mark {
	display: grid;
	place-items: center;
	width: 88px;
	height: 88px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: conic-gradient(from 200deg, var(--pf-accent), rgba(68, 196, 188, .1), var(--pf-accent));
	padding: 3px;
}
.pf-about-card__mark span {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--pf-surface);
	color: var(--pf-accent);
	font: 700 28px/1 var(--pf-font);
	letter-spacing: .04em;
}
.pf-about-card__title { margin-bottom: 14px !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: .14em; text-transform: uppercase; color: var(--pf-muted) !important; }

.pf-facts { margin: 0; display: grid; gap: 14px; }
.pf-facts > div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--pf-border); }
.pf-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.pf-facts dt { display: flex; align-items: center; gap: 8px; color: var(--pf-muted); font-size: 13px; font-weight: 500; }
.pf-facts dt i { width: 16px; color: var(--pf-accent); text-align: center; }
.pf-facts dd { margin: 0; color: var(--pf-text); font-size: 15px; font-weight: 500; line-height: 1.5; }

.pf-split { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px); }
.pf-split__aside { align-self: start; position: sticky; top: calc(var(--pf-header) + 24px); }
.pf-split__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; line-height: 1.2; }

.pf-prose { color: var(--pf-text); font-size: 17px; line-height: 1.8; }
.pf-prose > * + * { margin-top: 1.1em; }
.pf-prose p { color: var(--pf-text); opacity: .92; }
.pf-prose h2 { margin-top: 2.2em; font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; line-height: 1.3; scroll-margin-top: calc(var(--pf-header) + 20px); }
.pf-prose h2:first-child { margin-top: 0; }
.pf-prose h3 { font-size: 18px; font-weight: 600; }
.pf-prose ul, .pf-prose ol { padding-left: 1.2em; }
.pf-prose li { margin: .4em 0; padding-left: .2em; }
.pf-prose li::marker { color: var(--pf-accent); }
.pf-prose strong { color: var(--pf-text); font-weight: 600; }
.pf-prose .ad-lead { font-size: clamp(18px, 1.8vw, 20px); color: var(--pf-text); opacity: 1; padding-left: 18px; border-left: 3px solid var(--pf-accent); }

.pf-skills .pf-card { gap: 16px; }
.pf-skill h3 { font-size: 16px; color: var(--pf-accent); letter-spacing: .02em; }

/* Timeline */
.pf-timeline { position: relative; margin: 0; padding: 0 0 0 28px; list-style: none; }
.pf-timeline::before {
	content: '';
	position: absolute;
	left: 7px;
	top: 6px;
	bottom: 6px;
	width: 2px;
	background: linear-gradient(var(--pf-accent), rgba(68, 196, 188, .1));
	border-radius: 2px;
}
.pf-timeline__item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
	gap: 8px 28px;
	margin: 0;
	padding: 0 0 34px;
}
.pf-timeline__item:last-child { padding-bottom: 0; }
.pf-timeline__item::before {
	content: '';
	position: absolute;
	left: -28px;
	top: 6px;
	width: 16px;
	height: 16px;
	border: 3px solid var(--pf-bg-2);
	border-radius: 50%;
	background: var(--pf-accent);
	box-shadow: 0 0 0 3px rgba(68, 196, 188, .25);
}
.pf-timeline__item--internship::before, .pf-timeline__item--project::before { background: var(--pf-surface-2); box-shadow: 0 0 0 2px var(--pf-accent); }
.pf-timeline__item--education::before { background: var(--pf-accent-2); }
.pf-timeline__when { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--pf-muted); font-size: 14px; font-weight: 500; }
.pf-timeline__body h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.pf-timeline__body h3 a { color: var(--pf-text); text-decoration: underline; text-decoration-color: var(--pf-border-strong); text-underline-offset: 4px; }
.pf-timeline__body h3 a:hover { color: var(--pf-accent); }
.pf-timeline__body p { margin-top: 4px; color: var(--pf-muted); font-size: 15px; }
.pf-timeline__org { color: var(--pf-text) !important; font-weight: 500; }
.pf-timeline--detailed .pf-timeline__item { grid-template-columns: minmax(150px, 200px) minmax(0, 1fr); padding-bottom: 28px; }

/* Experience cards */
.pf-role__head { display: flex; gap: 16px; align-items: flex-start; }
.pf-role__logo { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: #fff; padding: 6px; }
.pf-role h3 { font-size: 20px; }
.pf-role__org { margin-top: 2px; color: var(--pf-accent) !important; font-weight: 500; }
.pf-role .pf-meta { margin-top: 6px; }
.pf-role__sub, .pf-service__sub, .pf-edu__sub {
	margin-top: 4px !important;
	color: var(--pf-muted) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.pf-checks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pf-checks li { position: relative; margin: 0; padding-left: 26px; color: var(--pf-text); font-size: 15px; line-height: 1.6; opacity: .92; }
.pf-checks li::before {
	content: '\f00c';
	position: absolute;
	left: 0;
	top: 2px;
	color: var(--pf-accent);
	font: 900 12px/1.6 'Font Awesome 6 Free';
}

/* Education */
.pf-edu__school { color: var(--pf-text) !important; font-weight: 500; }
.pf-edu__award { display: flex; gap: 8px; align-items: baseline; color: var(--pf-accent) !important; font-weight: 500; }
.pf-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--pf-text); font-size: 15px; }
.pf-list li { margin: 0; }

/* ---------- Projects ---------- */

.pf-feature {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: center;
	padding: clamp(24px, 4vw, 48px);
	border: 1px solid var(--pf-border-strong);
	border-radius: 28px;
	background:
		radial-gradient(60% 90% at 0% 0%, rgba(68, 196, 188, .14), transparent 60%),
		linear-gradient(180deg, var(--pf-surface-2), var(--pf-surface));
	box-shadow: var(--pf-shadow);
}
.pf-feature__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pf-feature h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.pf-feature__lead { color: var(--pf-muted); font-size: 17px; }

.pf-visual { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--pf-border); background: #0a0e13; }
.pf-visual--image img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.pf-visual--code { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.pf-visual__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); background: #0e131a; }
.pf-visual__bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.pf-visual__bar span:nth-child(2) { background: #febc2e; }
.pf-visual__bar span:nth-child(3) { background: #28c840; }
.pf-visual__bar em { margin-left: 10px; color: #8b98a5; font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-style: normal; }
.pf-visual__code {
	margin: 0;
	padding: 22px 22px 26px;
	overflow-x: auto;
	background: transparent;
	color: #cfd8e1;
	font: 400 14px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	white-space: pre-wrap;
	word-break: break-word;
}
.pf-visual__code .t-k { color: #6fd8d1; }
.pf-visual__code .t-s { color: #e8c38a; }
.pf-visual__code .t-p { color: #8b98a5; }

.pf-project-card { height: 100%; }
.pf-project-card .pf-visual__code { font-size: 12.5px; padding: 16px; }
.pf-project-card__cats { color: var(--pf-accent) !important; font-size: 12.5px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pf-project-card h3 a { color: var(--pf-text); text-decoration: none; }
.pf-project-card:hover h3 a { color: var(--pf-accent); }
.pf-stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.pf-project-card__more { margin-top: auto; color: var(--pf-accent); }

.pf-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-filters button {
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-pill);
	background: var(--pf-surface);
	color: var(--pf-text);
	font: 500 14px/1.2 var(--pf-font);
	cursor: pointer;
	transition: background-color .2s var(--pf-ease), color .2s var(--pf-ease), border-color .2s var(--pf-ease);
}
.pf-filters button:hover { border-color: var(--pf-border-strong); }
.pf-filters button[aria-pressed="true"] { background: var(--pf-accent); border-color: var(--pf-accent); color: var(--pf-on-accent); }
[data-pf-grid] > li[hidden] { display: none; }

/* Case study */
.pf-case__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.pf-case__head > div:first-child { display: flex; flex-direction: column; gap: 16px; }
.pf-case__head .pf-hero__lead { margin-top: 0; }
.pf-case__layout { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pf-case__aside { position: sticky; top: calc(var(--pf-header) + 24px); display: grid; gap: 20px; }
.pf-case__aside-title { margin-bottom: 12px !important; color: var(--pf-muted) !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .14em; text-transform: uppercase; }
.pf-case__aside-sub { margin: 6px 0 4px !important; color: var(--pf-muted) !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .14em; text-transform: uppercase; }
.pf-case__facts { gap: 12px; }
.pf-case__facts .pf-badge { font-size: 12.5px; }
.pf-case__toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--pf-border); }
.pf-case__toc li { margin: 0; }
.pf-case__toc a {
	display: block;
	margin-left: -2px;
	padding: 6px 0 6px 16px;
	border-left: 2px solid transparent;
	color: var(--pf-muted);
	font-size: 14.5px;
	text-decoration: none;
}
.pf-case__toc a:hover { color: var(--pf-accent); border-left-color: var(--pf-accent); }
.pf-case__body { max-width: 760px; }
.pf-case__back { padding-bottom: 8px; }

/* Columns inside a case study: architecture flow and the three spaces. */
.pf-prose .wp-block-columns.ad-cs-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 1.4em 0; }
.pf-prose .ad-cs-cols .wp-block-column {
	position: relative;
	padding: 20px;
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius);
	background: var(--pf-surface);
}
.pf-prose .ad-cs-cols .wp-block-column > * + * { margin-top: .6em; }
.pf-prose .ad-cs-cols h3 { font-size: 16px; color: var(--pf-accent); }
.pf-prose .ad-cs-cols p { font-size: 14.5px; line-height: 1.65; }
.pf-prose .ad-cs-cols .ad-cs-cols__meta { color: var(--pf-muted); font: 500 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; opacity: 1; }
.pf-prose .ad-cs-cols--flow .wp-block-column:not(:last-child)::after {
	content: '\f061';
	position: absolute;
	right: -14px;
	top: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	border-radius: 50%;
	background: var(--pf-accent);
	color: var(--pf-on-accent);
	font: 900 11px/1 'Font Awesome 6 Free';
}

.pf-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.pf-gallery figure { margin: 0; border: 1px solid var(--pf-border); border-radius: var(--pf-radius); overflow: hidden; }
.pf-gallery figcaption { padding: 10px 14px; color: var(--pf-muted); font-size: 14px; }

/* ---------- Services ---------- */

.pf-service { gap: 14px; }
.pf-service h3 { font-size: 20px; }
.pf-service__techs { margin-top: auto; padding-top: 6px; }

.pf-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}
.pf-step {
	position: relative;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-lg);
	background: var(--pf-surface);
}
.pf-step__num { display: block; margin-bottom: 14px; color: var(--pf-accent); font: 700 28px/1 var(--pf-font); letter-spacing: -.02em; }
.pf-step h3 { font-size: 18px; font-weight: 600; }
.pf-step p { margin-top: 6px; color: var(--pf-muted); font-size: 15px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
	.pf-about-hero, .pf-feature, .pf-case__head { grid-template-columns: 1fr; }
	.pf-split { grid-template-columns: 1fr; }
	.pf-split__aside { position: static; }
	.pf-case__layout { grid-template-columns: 1fr; }
	.pf-case__aside { position: static; }
	.pf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.pf-timeline__item, .pf-timeline--detailed .pf-timeline__item { grid-template-columns: 1fr; }
	.pf-timeline__when { flex-direction: row; flex-wrap: wrap; align-items: center; }
	.pf-prose .wp-block-columns.ad-cs-cols { grid-template-columns: 1fr; }
	.pf-prose .ad-cs-cols--flow .wp-block-column:not(:last-child)::after { content: '\f063'; right: auto; left: 50%; top: auto; bottom: -14px; margin: 0 0 0 -12px; }
	.pf-steps { grid-template-columns: 1fr; }
	.pf-about-card { padding: 22px; }
	.pf-prose { font-size: 16px; }
}

/* ---------- Home page sections (the layout of the home page stays) ---------- */

.pf-home-band { padding: clamp(48px, 7vw, 88px) 0; background: transparent; }
.pf-home-band--alt { background: rgba(255, 255, 255, .015); border-top: 1px solid var(--pf-border); border-bottom: 1px solid var(--pf-border); }
.pf-home-band .pf-heading h2 { font-size: clamp(28px, 3.6vw, 40px); }
.pf-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.pf-home-role { gap: 10px; }
.pf-card .pf-home-role__org { color: var(--pf-accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pf-home-role h3 { font-size: 17px; }
.pf-feature__title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; line-height: 1.1; }
.pf-focus h3 { font-size: 18px; }

/* ---------- Home: company cards (the old home page's cards, from Portfolio > Experience) ---------- */
/* The company's colour (--pf-company, Portfolio > Experience) marks the top edge, the stages and
   the link; the site's turquoise otherwise. Texts keep the site's colours, for contrast. */
.pf-companies__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: clamp(18px, 2.2vw, 28px); margin: 0; padding: 0; list-style: none; }
.pf-company {
	--pf-company: var(--pf-accent);
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--pf-border);
	border-top: 3px solid var(--pf-company);
	border-radius: var(--pf-radius-lg);
	background: linear-gradient(180deg, var(--pf-surface-2), var(--pf-surface));
	box-shadow: var(--pf-shadow);
	transition: transform .3s var(--pf-ease), box-shadow .3s var(--pf-ease);
}
.pf-company:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -22px rgba(68, 196, 188, .5); box-shadow: 0 24px 44px -22px color-mix(in srgb, var(--pf-company) 70%, transparent); }
.pf-company__poster { position: relative; aspect-ratio: 4 / 1; overflow: hidden; background: var(--pf-surface-2); }
.pf-company__img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* A logo that is not a wide poster (such as a square logo): whole, centred on the company's tint. */
.pf-company__img--whole {
	padding: 12px 24px;
	object-fit: contain;
	background: radial-gradient(120% 160% at 0% 0%, rgba(68, 196, 188, .25), transparent 60%);
	background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--pf-company) 35%, transparent), transparent 62%), var(--pf-surface-2);
}
.pf-company__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0 16px;
	background: radial-gradient(120% 160% at 0% 0%, rgba(68, 196, 188, .25), transparent 60%);
	background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--pf-company) 35%, transparent), transparent 62%), var(--pf-surface-2);
	color: var(--pf-text);
	font: 700 clamp(20px, 2.4vw, 28px)/1.1 var(--pf-font);
	letter-spacing: .02em;
	text-align: center;
}
.pf-company__badge {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	border-radius: var(--pf-pill);
	background: rgba(7, 9, 12, .85);
	color: #fff;
	font: 600 12px/1.2 var(--pf-font);
	letter-spacing: .06em;
	text-transform: uppercase;
}
.pf-company__dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; animation: pf-pulse 2s infinite; }
@keyframes pf-pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, .6); } 70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }
.pf-company__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: clamp(20px, 2.4vw, 28px); }
.pf-company__name { font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--pf-text); }
.pf-company__group { color: var(--pf-muted); font-size: 15px; font-weight: 500; }
.pf-company__place { margin: 0; color: var(--pf-muted); font-size: 14px; }
.pf-company__place i { margin-right: 4px; color: var(--pf-company); }
.pf-company__stages { position: relative; display: grid; gap: 12px; margin: 4px 0 0; padding: 0 0 0 20px; list-style: none; }
.pf-company__stages::before { content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(var(--pf-company), transparent); opacity: .7; }
.pf-company__stage { position: relative; display: grid; gap: 4px; }
.pf-company__stage::before { content: ''; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--pf-company); box-shadow: 0 0 0 3px var(--pf-surface-2); }
.pf-company__role { color: var(--pf-text); font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.pf-company__period { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--pf-muted); font-size: 13.5px; }
.pf-company__text { margin: 0; color: var(--pf-muted); font-size: 15px; }
.pf-company__techs .pf-badge { padding: 4px 10px; font-size: 12px; }
.pf-company__link {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding: 10px 18px;
	border: 1px solid var(--pf-company);
	border-radius: var(--pf-pill);
	color: var(--pf-text);
	font: 600 14px/1 var(--pf-font);
	text-decoration: none;
	transition: background-color .2s var(--pf-ease);
}
.pf-company__link:hover, .pf-company__link:focus-visible { background: var(--pf-accent-soft); background: color-mix(in srgb, var(--pf-company) 20%, transparent); }
.pf-company__link:focus-visible { outline: none; box-shadow: var(--pf-focus); }

/* ---------- Home: certifications (the old home page's logo grid, from Portfolio > Certifications) ---------- */
.pf-certs { position: relative; overflow: hidden; }
.pf-certs::before { content: ''; position: absolute; inset: -30% 0 auto; height: 130%; background: radial-gradient(50% 50% at 50% 50%, rgba(68, 196, 188, .14), transparent 70%); pointer-events: none; }
.pf-certs .pf-container { position: relative; }
.pf-heading--center { margin-inline: auto; text-align: center; }
.pf-certs__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 2.6vw, 32px); margin: 0; padding: 0; list-style: none; }
.pf-cert { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 184px; text-align: center; }
.pf-cert__tile {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 132px;
	height: 132px;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 28px;
	background: rgba(255, 255, 255, .06);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .6);
	transition: transform .3s var(--pf-ease), box-shadow .3s var(--pf-ease), border-color .3s var(--pf-ease);
}
.pf-cert:hover .pf-cert__tile { transform: translateY(-8px); border-color: var(--pf-border-strong); box-shadow: 0 16px 36px -10px rgba(68, 196, 188, .55); }
.pf-cert__img { width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.pf-cert__icon { color: var(--pf-accent); font-size: 44px; }
.pf-cert__name { color: var(--pf-text); font-size: 17px; font-weight: 600; line-height: 1.3; }
.pf-cert__meta { margin: 0; color: var(--pf-muted); font-size: 14px; }
.pf-cert__link { color: var(--pf-accent); font-size: 14px; font-weight: 600; }
html.light-mode .pf-cert__tile { border-color: var(--pf-border); background: var(--pf-surface); box-shadow: var(--pf-shadow); }
@media (max-width: 480px) {
	.pf-cert { width: 140px; }
	.pf-cert__tile { width: 104px; height: 104px; padding: 14px; border-radius: 22px; }
}

/* ---------- Experience page: one company, its stages in order ---------- */
.pf-role__company { font-size: 20px; font-weight: 700; line-height: 1.3; }
/* A wide company poster (4:1) as a small banner, in place of the square logo tile. */
.pf-role__logo--wide { width: 144px; height: 36px; padding: 0; border-radius: 8px; object-fit: cover; background: var(--pf-surface-2); }
@media (max-width: 480px) {
	.pf-role__head--wide { flex-wrap: wrap; gap: 12px; }
}
.pf-role--stages { border-left: 3px solid var(--pf-company, var(--pf-accent)); }
.pf-role__stage { display: grid; gap: 8px; }
.pf-role__stage + .pf-role__stage { margin-top: 6px; padding-top: 18px; border-top: 1px dashed var(--pf-border); }
.pf-role__title { color: var(--pf-text); font-size: 18px; font-weight: 600; line-height: 1.35; }
.pf-timeline__stage { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
