/* Neto UI — Expert profile [neto_ui_page_expert] */

.neto-expert {
	position: relative;
	isolation: isolate;
	padding: clamp(1.25rem, 2.8vw, 2.25rem) 0 clamp(2.5rem, 5vw, 4rem);
	color: var(--neto-ink);
	font-family: var(--neto-font);
	direction: rtl;
	background: transparent;
}

.neto-expert__wrap {
	width: 100%;
	display: grid;
	gap: clamp(2.75rem, 5.5vw, 4.25rem);
}

/* —— Profile row —— */
.neto-expert__profile {
	display: grid;
	grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr) minmax(10rem, 13rem);
	grid-template-areas:
		"eyebrow facts side"
		"photo facts side";
	column-gap: clamp(1.35rem, 2.8vw, 2.1rem);
	row-gap: 0.55rem;
	align-items: start;
}

.neto-expert__profile--no-side {
	grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr);
	grid-template-areas:
		"eyebrow facts"
		"photo facts";
}

.neto-expert__eyebrow {
	grid-area: eyebrow;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: center;
	gap: 0.5rem;
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--neto-muted);
	align-self: end;
}

.neto-expert__photo {
	grid-area: photo;
	align-self: start;
	margin: 0;
	width: 100%;
	border-radius: 1.25rem;
	overflow: hidden;
	aspect-ratio: 1 / 1.05;
	background: var(--neto-card);
	border: 1px solid var(--neto-line);
	box-shadow:
		0 1px 0 color-mix(in srgb, #fff 50%, transparent) inset,
		0 14px 36px -18px color-mix(in srgb, var(--neto-ink) 32%, transparent);
}

.neto-expert__facts-col {
	grid-area: facts;
	display: grid;
	gap: 1.15rem;
	align-content: center;
	align-self: center;
	min-width: 0;
	padding: 0.15rem 0 0.15rem 0.25rem;
}

.neto-expert__side {
	grid-area: side;
	align-self: center;
}

.neto-expert__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.neto-expert__photo-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 10rem;
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--neto-brand);
	background: linear-gradient(145deg, var(--neto-glow-a), transparent 70%);
}

.neto-expert__eyebrow-line {
	display: inline-block;
	width: 1.5rem;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--neto-eyebrow-line, var(--neto-accent)), transparent);
}

.neto-expert__eyebrow-fa {
	color: var(--neto-ink);
	font-weight: 500;
	letter-spacing: 0;
}

.neto-expert__intro {
	display: grid;
	gap: 0.45rem;
}

.neto-expert__name {
	margin: 0;
	font-size: clamp(1.55rem, 2.8vw, 2.05rem);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.025em;
	color: var(--neto-ink);
}

.neto-expert__role {
	margin: 0;
	max-width: 34rem;
	font-size: clamp(0.98rem, 1.35vw, 1.12rem);
	font-weight: 600;
	line-height: 1.65;
	color: var(--neto-brand);
	position: relative;
	padding-inline-start: 0.85rem;
}

.neto-expert__role::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.35em;
	bottom: 0.35em;
	width: 3px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--neto-accent), color-mix(in srgb, var(--neto-brand) 55%, transparent));
}

.neto-expert__facts {
	margin: 0;
	padding: 0.15rem 0 0;
	display: grid;
	gap: 0;
	position: relative;
}

.neto-expert__fact {
	display: grid;
	grid-template-columns: 2rem minmax(0, 1fr);
	gap: 0.85rem;
	align-items: start;
	padding: 0.7rem 0;
	border: 0;
	background: transparent;
	animation: neto-expert-in 0.5s ease both;
	animation-delay: calc(var(--neto-fact-i, 1) * 55ms);
}

.neto-expert__fact + .neto-expert__fact {
	border-top: 1px solid color-mix(in srgb, var(--neto-line) 70%, transparent);
}

.neto-expert__fact-mark {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	margin-top: 0.1rem;
	border-radius: 0.65rem;
	color: var(--neto-brand);
	background:
		linear-gradient(
			145deg,
			color-mix(in srgb, var(--neto-accent) 16%, transparent),
			color-mix(in srgb, var(--neto-brand) 8%, transparent)
		);
	border: 1px solid color-mix(in srgb, var(--neto-accent) 22%, transparent);
	box-shadow: 0 6px 14px -10px color-mix(in srgb, var(--neto-brand) 55%, transparent);
	position: relative;
	z-index: 1;
}

html[data-neto-ui-theme="dark"] .neto-expert__fact-mark {
	color: #7dd3fc;
	background: linear-gradient(145deg, rgba(0, 215, 255, 0.14), rgba(255, 255, 255, 0.04));
	border-color: rgba(0, 215, 255, 0.28);
	box-shadow: none;
}

html[data-neto-ui-theme="dark"] .neto-expert__role {
	color: #7dd3fc;
}

.neto-expert__fact-ico {
	display: inline-flex;
	line-height: 0;
}

.neto-expert__fact-ico svg {
	display: block;
}

.neto-expert__fact-body {
	display: grid;
	gap: 0.2rem;
	min-width: 0;
	padding-top: 0.05rem;
}

.neto-expert__fact dt {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--neto-muted);
}

.neto-expert__fact dd {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.55;
	color: var(--neto-ink);
	word-break: break-word;
}

.neto-expert__fact a {
	color: var(--neto-accent);
	text-decoration: none;
	font-weight: 600;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 100% 100%;
	background-repeat: no-repeat;
	background-size: 0 1px;
	transition: background-size 0.25s ease, color 0.2s ease;
}

.neto-expert__fact a:hover,
.neto-expert__fact a:focus-visible {
	color: var(--neto-brand-hover);
	background-size: 100% 1px;
	text-decoration: none;
}

.neto-expert__side {
	margin: 0;
	border-radius: 1rem;
	overflow: hidden;
	align-self: center;
}

.neto-expert__side img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* —— Skills —— */
.neto-expert__skills {
	display: grid;
	gap: 1.15rem;
}

.neto-expert__section-title {
	margin: 0;
	font-size: clamp(1.2rem, 2vw, 1.45rem);
	font-weight: 700;
	line-height: 1.4;
	color: var(--neto-ink);
	text-align: center;
}

.neto-expert__skill-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem 1.35rem;
}

.neto-expert__skill {
	display: grid;
	gap: 0.45rem;
	animation: neto-expert-in 0.55s ease both;
	animation-delay: calc(var(--neto-skill-i, 1) * 45ms);
}

.neto-expert__skill-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
}

.neto-expert__skill-label {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--neto-ink);
	letter-spacing: 0.01em;
}

.neto-expert__skill-pct {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--neto-muted);
	font-variant-numeric: tabular-nums;
	direction: ltr;
}

.neto-expert__track {
	height: 0.55rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--neto-line) 85%, transparent);
	overflow: hidden;
}

.neto-expert__bar {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--neto-brand), var(--neto-accent));
	animation: neto-expert-bar 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: calc(var(--neto-skill-i, 1) * 55ms + 120ms);
}

@keyframes neto-expert-bar {
	to {
		width: var(--neto-skill-pct, 0%);
	}
}

@keyframes neto-expert-in {
	from {
		opacity: 0;
		transform: translateY(0.4rem);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* —— Bio —— */
.neto-expert__bio {
	display: grid;
	gap: 1rem;
}

.neto-expert__bio-body {
	font-size: clamp(0.98rem, 1.2vw, 1.05rem);
	line-height: 2.05;
	color: var(--neto-muted);
	text-align: justify;
	text-justify: inter-word;
	text-align-last: right;
	hyphens: auto;
}

.neto-expert__bio-body p,
.neto-expert__bio-body li {
	text-align: justify;
	text-justify: inter-word;
	text-align-last: right;
}

.neto-expert__bio-body p {
	margin: 0 0 0.95rem;
}

.neto-expert__bio-body p:last-child {
	margin-bottom: 0;
}

.neto-expert__bio-body a {
	color: var(--neto-ink);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 0;
}

.neto-expert__bio-body a:hover,
.neto-expert__bio-body a:focus-visible {
	color: var(--neto-accent);
	text-decoration: none;
}

.neto-expert__bio-body strong {
	color: var(--neto-ink);
	font-weight: 700;
}

/* —— CTAs —— */
.neto-expert__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	justify-content: flex-start;
}

.neto-expert__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.65rem 1.15rem;
	border-radius: 0.65rem;
	border: 1px solid var(--neto-line);
	background: var(--neto-card);
	color: var(--neto-ink);
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.3;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.neto-expert__btn:hover,
.neto-expert__btn:focus-visible {
	border-color: var(--neto-accent);
	color: var(--neto-accent);
	text-decoration: none;
	transform: translateY(-1px);
}

.neto-expert__btn--primary {
	background: var(--neto-brand);
	border-color: var(--neto-brand);
	color: var(--neto-brand-ink);
}

.neto-expert__btn--primary:hover,
.neto-expert__btn--primary:focus-visible {
	background: var(--neto-brand-hover);
	border-color: var(--neto-brand-hover);
	color: var(--neto-brand-ink);
}

.neto-expert__btn--accent {
	background: transparent;
	border-color: color-mix(in srgb, var(--neto-accent) 45%, var(--neto-line));
	color: var(--neto-accent);
}

.neto-expert__btn-ico {
	display: inline-flex;
	flex-shrink: 0;
	opacity: 0.9;
}

/* —— Responsive —— */
@media (max-width: 900px) {
	.neto-expert__profile {
		grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
		grid-template-areas:
			"eyebrow facts"
			"photo facts"
			"side side";
	}

	.neto-expert__profile--no-side {
		grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
		grid-template-areas:
			"eyebrow facts"
			"photo facts";
	}

	.neto-expert__side {
		max-width: 18rem;
		justify-self: center;
	}

	.neto-expert__skill-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.neto-expert__profile,
	.neto-expert__profile--no-side {
		grid-template-columns: 1fr;
		grid-template-areas:
			"eyebrow"
			"photo"
			"facts"
			"side";
		justify-items: center;
		text-align: center;
		row-gap: 0.85rem;
	}

	.neto-expert__photo {
		width: min(100%, 18rem);
		justify-self: center;
	}

	.neto-expert__eyebrow {
		justify-self: center;
		justify-content: center;
		align-self: center;
	}

	.neto-expert__facts-col {
		justify-items: stretch;
		width: 100%;
		text-align: right;
		padding: 0;
	}

	.neto-expert__intro {
		justify-items: center;
		text-align: center;
	}

	.neto-expert__name {
		text-align: center;
	}

	.neto-expert__role {
		padding-inline-start: 0;
		text-align: center;
	}

	.neto-expert__role::before {
		display: none;
	}

	.neto-expert__role::after {
		content: "";
		display: block;
		width: 2.5rem;
		height: 3px;
		margin: 0.55rem auto 0;
		border-radius: 999px;
		background: linear-gradient(90deg, var(--neto-accent), transparent);
	}

	.neto-expert__facts {
		width: 100%;
		text-align: right;
	}

	.neto-expert__fact {
		grid-template-columns: 2rem minmax(0, 1fr);
		text-align: right;
	}

	.neto-expert__skill-grid {
		grid-template-columns: 1fr;
	}

	.neto-expert__section-title {
		text-align: right;
	}

	.neto-expert__actions {
		flex-direction: column;
	}

	.neto-expert__btn {
		justify-content: center;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.neto-expert__skill,
	.neto-expert__fact,
	.neto-expert__bar,
	.neto-expert__btn {
		animation: none !important;
		transition: none !important;
	}

	.neto-expert__bar {
		width: var(--neto-skill-pct, 0%);
	}
}
