/* TechEdu cinematic hero slider =============================================== */

.te-hero {
	position: relative;
	width: 100%;
	height: 100svh;
	min-height: 620px;
	max-height: 940px;
	overflow: hidden;
	background: #0c080f;
	color: #fff;
	isolation: isolate;
}

/* ---- Image stage ----------------------------------------------------------- */
.te-hero__stage { position: absolute; inset: 0; z-index: 0; }

.te-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	clip-path: inset(0 0 100% 0);
	transition: clip-path 1s cubic-bezier(.77,0,.175,1), opacity .1s linear .05s;
	will-change: clip-path, opacity;
}
.te-hero__slide.is-active { opacity: 1; clip-path: inset(0 0 0% 0); z-index: 2; }
.te-hero__slide.is-prev { opacity: 1; clip-path: inset(0 0 0% 0); z-index: 1; }

.te-hero__imgwrap { position: absolute; inset: 0; overflow: hidden; }
.te-hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.te-hero__slide.is-active .te-hero__img { animation: te-kenburns 7s ease-out forwards; }

@keyframes te-kenburns {
	from { transform: scale(1.04) translate(0, 0); }
	to   { transform: scale(1.15) translate(-1.5%, -1.5%); }
}

/* cinematic grade */
.te-hero__grade {
	position: absolute; inset: 0; z-index: 3; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(12,8,15,.94) 0%, rgba(12,8,15,.62) 42%, rgba(12,8,15,.18) 100%),
		linear-gradient(to top, rgba(12,8,15,.96) 0%, transparent 46%, rgba(12,8,15,.5) 100%),
		radial-gradient(125% 95% at 50% 30%, transparent 44%, rgba(90,10,10,.35) 100%);
}
.te-hero__grain {
	position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .09;
	mix-blend-mode: overlay;
	background-image: radial-gradient(rgba(255,255,255,.7) .5px, transparent .5px);
	background-size: 3px 3px;
}

.te-hero__watermark {
	position: absolute; right: 3%; top: 10%; z-index: 4;
	font-family: var(--te-display);
	font-weight: 800;
	font-size: 22vw;
	line-height: 1;
	color: rgba(255,255,255,.05);
	pointer-events: none; user-select: none;
}
@media (min-width: 1024px) { .te-hero__watermark { font-size: 15vw; } }

/* ---- Content --------------------------------------------------------------- */
.te-hero__inner {
	position: relative;
	z-index: 5;
	height: 100%;
	width: 100%;
	max-width: 84rem;
	margin: 0 auto;
	padding: 7rem var(--te-gutter, 2rem) 2.4rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.te-hero__content { position: relative; max-width: 46rem; }
.te-hero__panel {
	position: absolute; inset: 0;
	opacity: 0; visibility: hidden;
	transition: opacity .5s ease;
	pointer-events: none;
}
.te-hero__panel.is-active { position: relative; opacity: 1; visibility: visible; pointer-events: auto; }

.te-hero__eyebrow {
	display: inline-flex; align-items: center; gap: .6rem;
	padding: .45rem 1rem;
	border: 1px solid rgba(255,255,255,.2);
	background: rgba(255,255,255,.08);
	border-radius: 999px;
	backdrop-filter: blur(8px);
	font-family: var(--te-sans);
	font-size: .72rem; font-weight: 600;
	letter-spacing: .18em; text-transform: uppercase;
	color: rgba(255,255,255,.92);
}
.te-hero__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--te-red-bright, #e23b3b); box-shadow: 0 0 12px rgba(226,59,59,.8); }

.te-hero__title {
	margin: 1.4rem 0 0;
	font-family: var(--te-display);
	font-weight: 800;
	font-size: clamp(2.5rem, 1rem + 6vw, 5.6rem);
	line-height: 1.0;
	letter-spacing: -.025em;
	color: #fff;
}
.te-hero__line { display: block; overflow: hidden; padding-bottom: .06em; }
.te-hero__line > span {
	display: block;
	transform: translateY(115%);
	transition: transform .85s cubic-bezier(.16,1,.3,1);
}
.te-hero__panel.is-active .te-hero__line:nth-child(1) > span { transition-delay: .12s; transform: translateY(0); }
.te-hero__panel.is-active .te-hero__line:nth-child(2) > span { transition-delay: .24s; transform: translateY(0); }
.te-hero__accent {
	font-style: italic;
	color: var(--te-red-bright, #e23b3b);
	text-shadow: 0 2px 24px rgba(226,59,59,.45);
}

.te-hero__copy {
	margin: 1.4rem 0 0;
	max-width: 34rem;
	font-size: clamp(1rem, .9rem + .4vw, 1.25rem);
	line-height: 1.6;
	color: rgba(255,255,255,.78);
	opacity: 0; transform: translateY(16px);
	transition: opacity .8s ease .48s, transform .8s cubic-bezier(.16,1,.3,1) .48s;
}
.te-hero__panel.is-active .te-hero__copy { opacity: 1; transform: none; }

.te-hero__actions {
	margin-top: 2.2rem;
	display: flex; flex-wrap: wrap; gap: .8rem;
	opacity: 0; transform: translateY(16px);
	transition: opacity .8s ease .6s, transform .8s cubic-bezier(.16,1,.3,1) .6s;
}
.te-hero__panel.is-active .te-hero__actions { opacity: 1; transform: none; }

.te-hero__btn {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .95rem 1.7rem;
	border-radius: 999px;
	font-family: var(--te-sans);
	font-weight: 600; font-size: 1rem;
	text-decoration: none;
	transition: transform .18s cubic-bezier(.16,1,.3,1), filter .2s, background .2s;
}
.te-hero__btn svg { width: 1rem; height: 1rem; transition: transform .2s; }
.te-hero__btn--primary {
	background: #fff; color: #14100f;
	box-shadow: 0 18px 44px -14px rgba(0,0,0,.5);
	transition: transform .18s cubic-bezier(.16,1,.3,1), background .2s, color .2s;
}
.te-hero__btn--primary:hover { transform: translateY(-2px) scale(1.02); background: var(--te-red-bright, #e23b3b); color: #fff; }
.te-hero__btn--primary:hover svg { transform: translate(2px,-2px); }
.te-hero__btn--ghost {
	border: 1px solid rgba(255,255,255,.28);
	background: rgba(255,255,255,.06);
	color: #fff; backdrop-filter: blur(8px);
}
.te-hero__btn--ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

/* ---- Controls -------------------------------------------------------------- */
.te-hero__controls {
	position: absolute;
	left: var(--te-gutter, 2rem); right: var(--te-gutter, 2rem);
	bottom: 2rem;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
}
.te-hero__nav { display: flex; align-items: center; gap: 1rem; }
.te-hero__arrow {
	width: 2.9rem; height: 2.9rem;
	display: grid; place-items: center;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.25);
	background: rgba(255,255,255,.05);
	color: #fff; cursor: pointer;
	backdrop-filter: blur(8px);
	transition: background .2s, transform .15s;
}
.te-hero__arrow:hover { background: rgba(255,255,255,.16); }
.te-hero__arrow:active { transform: scale(.94); }
.te-hero__arrow svg { width: 1.15rem; height: 1.15rem; }
.te-hero__count { font-family: var(--te-display); font-size: 1.05rem; color: rgba(255,255,255,.7); }
.te-hero__count [data-te-hero-cur] { font-size: 1.5rem; font-weight: 700; color: #fff; }
.te-hero__count-sep { opacity: .5; margin: 0 .1rem; }

.te-hero__thumbs { display: flex; align-items: center; gap: .6rem; }
.te-hero__thumb {
	position: relative;
	height: 3.6rem; width: 3rem;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,.2);
	opacity: .55; cursor: pointer; padding: 0;
	transition: width .5s cubic-bezier(.16,1,.3,1), opacity .3s, border-color .3s;
}
.te-hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.te-hero__thumb:hover { opacity: 1; }
.te-hero__thumb.is-active { width: 6rem; opacity: 1; border-color: rgba(255,255,255,.75); }
.te-hero__thumb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.25); }
.te-hero__thumb-bar i { display: block; height: 100%; width: 0; background: var(--te-red-bright, #e23b3b); }
.te-hero__thumb.is-active .te-hero__thumb-bar i { animation: te-hero-progress var(--te-hero-dur, 6000ms) linear forwards; }
.te-hero.is-paused .te-hero__thumb.is-active .te-hero__thumb-bar i { animation-play-state: paused; }

@keyframes te-hero-progress { from { width: 0; } to { width: 100%; } }

@media (max-width: 780px) {
	.te-hero__watermark { display: none; }
	.te-hero__controls { flex-direction: column; align-items: flex-start; gap: 1rem; bottom: 1.2rem; }
	.te-hero__thumbs { display: none; }

	/* Text sits low so the photo (and the subject's face) stays visible up top. */
	.te-hero__inner { justify-content: flex-end; padding: 6rem 1.25rem 6rem; }
	.te-hero__content { max-width: 100%; }

	/* Lighter, bottom-weighted grade so the subject up top stays visible. */
	.te-hero__grade {
		background:
			linear-gradient(to top, rgba(12,8,15,.9) 0%, rgba(12,8,15,.34) 40%, rgba(12,8,15,.06) 66%, rgba(12,8,15,.12) 100%);
	}
	/* Frame the person (left side of the photo) on the narrow portrait crop. */
	.te-hero__img { object-position: 22% center; }
	.te-hero__title { font-size: clamp(2.1rem, 1.2rem + 7vw, 3.2rem); }
}

@media (prefers-reduced-motion: reduce) {
	.te-hero__slide, .te-hero__line > span, .te-hero__copy, .te-hero__actions { transition: none !important; }
	.te-hero__slide.is-active .te-hero__img { animation: none; }
	.te-hero__line > span { transform: none; }
	.te-hero__thumb.is-active .te-hero__thumb-bar i { animation: none; width: 100%; }
}
