/* Home Lab: trang chủ (6 chương). Chỉ nạp ở trang chủ. */

/* ---------- Thành phần dùng riêng ở trang chủ ---------- */
.hl-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hl-pill {
	min-height: 44px;
	padding: 9px 20px;
	border: 1px solid var(--hl-color-line);
	border-radius: 999px;
	background: #fff;
	font-size: 0.9rem;
	color: var(--hl-color-ink);
	transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.4s var(--hl-ease);
}

.hl-pill:hover {
	transform: translateY(-1px);
	border-color: var(--hl-color-navy);
}

.hl-pill[aria-pressed="true"] {
	background: var(--hl-color-navy);
	border-color: var(--hl-color-navy);
	color: #fff;
}

.hl-pill--light {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
	backdrop-filter: blur(6px);
}

.hl-pill--light:hover {
	border-color: #fff;
}

.hl-pill--light[aria-pressed="true"] {
	background: #fff;
	border-color: #fff;
	color: var(--hl-color-navy);
}

.hl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.hl-chips span {
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.9);
}

.hl-chips--dark span {
	border-color: var(--hl-color-line);
	color: var(--hl-color-navy);
	background: #fff;
}

.hl-sechead {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--hl-space-4);
	margin-bottom: var(--hl-space-5);
}

.hl-sechead h2 {
	max-width: 18ch;
	margin: 12px 0 0;
}

/* Chấm điều hướng chương */
.hl-dots {
	position: fixed;
	top: 50%;
	right: 22px;
	z-index: 70;
	display: grid;
	gap: 14px;
	transform: translateY(-50%);
}

.hl-dots a {
	position: relative;
	display: block;
	width: 10px;
	height: 10px;
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.25);
	transition: transform 0.4s var(--hl-ease), background 0.4s;
}

.hl-dots a::after {
	content: "";
	position: absolute;
	inset: -17px;
}

.hl-dots a.is-on {
	background: var(--hl-color-green-light);
	border-color: #fff;
	transform: scale(1.5);
}

@media (max-width: 1100px) {
	.hl-dots {
		display: none;
	}
}

/* ---------- Chương 1: hero ---------- */
.hl-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 640px;
	height: 100svh;
	overflow: hidden;
	background: var(--hl-color-navy-darker);
	color: #fff;
}

.hl-hero__scenes,
.hl-hero__scene {
	position: absolute;
	inset: 0;
}

.hl-hero__scene {
	opacity: 0;
	transition: opacity 1.8s var(--hl-ease);
}

.hl-hero__scene.is-on {
	opacity: 1;
}

.hl-hero__scenes {
	transition: transform 0.2s linear;
	will-change: transform;
	inset: -3%;
}

.hl-hero__scene img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1);
}

.hl-hero__scene.is-on img {
	animation: hl-kenburns 16s ease-out forwards;
}

@keyframes hl-kenburns {
	to { transform: scale(1.07); }
}

.hl-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(0deg, rgba(2, 20, 31, 0.9) 0%, rgba(2, 20, 31, 0.35) 45%, rgba(2, 20, 31, 0.15) 100%),
		linear-gradient(90deg, rgba(2, 20, 31, 0.55), transparent 60%);
}

.hl-hero__body {
	position: relative;
	z-index: 2;
	padding-bottom: clamp(3rem, 9vh, 6rem);
}

.hl-hero__eyebrow {
	margin-bottom: 14px;
	color: #7fe0ae;
}

.hl-hero__title {
	max-width: 15ch;
	margin-bottom: 0.3em;
	font-size: clamp(2.6rem, 7vw, 5.6rem);
	color: #fff;
	text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.hl-hero__title .w {
	display: inline-block;
	opacity: 0;
	transform: translateY(0.5em);
	transition: opacity 0.9s var(--hl-ease), transform 0.9s var(--hl-ease);
	transition-delay: calc(var(--i, 0) * 70ms);
}

.hl-hero__title.is-in .w {
	opacity: 1;
	transform: none;
}

.hl-hero__sub {
	max-width: 52ch;
	margin-bottom: var(--hl-space-4);
	font-size: clamp(1rem, 1.5vw, 1.15rem);
	color: rgba(255, 255, 255, 0.85);
	transition: opacity 0.5s;
}

.hl-hero.is-swapping .hl-hero__sub {
	opacity: 0;
}

.hl-hero__label {
	margin-bottom: 10px;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.hl-hero__picker {
	margin-bottom: var(--hl-space-4);
}

.hl-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hl-hero__cue {
	position: absolute;
	left: 50%;
	bottom: 18px;
	z-index: 2;
	width: 1px;
	height: 38px;
	background: linear-gradient(#fff, transparent);
	transform-origin: top;
	animation: hl-cue 2.4s var(--hl-ease) infinite;
}

@keyframes hl-cue {
	0% { transform: scaleY(0); opacity: 0; }
	40% { opacity: 1; }
	100% { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 860px) {
	.hl-hero {
		min-height: 600px;
	}

	.hl-hero__cue {
		display: none;
	}

	.hl-hero__body {
		padding-bottom: 5.5rem;
	}
}

/* ---------- Chương 2: câu chuyện cuộn ---------- */
.hl-story {
	position: relative;
	height: 100svh;
	min-height: 640px;
	background: var(--hl-color-navy-darker);
}

.hl-story__sticky {
	position: relative;
	height: 100%;
	overflow: hidden;
	color: #fff;
}

.hl-story__stage,
.hl-story__cam,
.hl-story__layer {
	position: absolute;
	inset: 0;
}

.hl-story__cam {
	will-change: transform;
}

.hl-story__layer img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hl-story__layer--before img {
	filter: brightness(0.7) saturate(0.7);
}

.hl-story__layer--plan,
.hl-story__layer--clay,
.hl-story__layer--final {
	opacity: 0;
}

.hl-story__layer--plan img {
	filter: grayscale(1) brightness(0.5) contrast(1.35);
}

.hl-story__layer--plan::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 78, 120, 0.6);
	mix-blend-mode: multiply;
}

.hl-story__grid {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hl-draw {
	stroke-dasharray: 1;
	stroke-dashoffset: calc(1 - var(--draw, 0));
}

.hl-draw--bold {
	stroke: rgba(255, 255, 255, 0.9);
	stroke-width: 2;
}

.hl-story__layer--clay img {
	filter: saturate(0.1) brightness(1.1) contrast(0.88);
}

.hl-story__tint {
	position: absolute;
	inset: 0;
	background: #c9a97e;
	mix-blend-mode: color;
	opacity: 0.55;
}

.hl-story__glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 70% 60% at 50% 42%, rgba(255, 214, 150, 0.6), transparent 70%);
	mix-blend-mode: screen;
	opacity: 0;
	pointer-events: none;
}

.hl-story__shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(2, 20, 31, 0.88), rgba(2, 20, 31, 0.1) 62%),
		linear-gradient(0deg, rgba(2, 20, 31, 0.7), transparent 40%);
}

.hl-story__top {
	position: absolute;
	top: calc(var(--hl-header-h) + 16px);
	left: max(20px, calc((100vw - var(--hl-container)) / 2));
	right: max(20px, calc((100vw - var(--hl-container)) / 2));
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
}

.hl-story__tools {
	display: flex;
	align-items: center;
	gap: 14px;
}

.hl-auto {
	min-height: 44px;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 999px;
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
	white-space: nowrap;
	transition: background 0.3s;
}

.hl-auto:hover {
	background: rgba(255, 255, 255, 0.14);
}

.hl-meter {
	display: flex;
	gap: 5px;
}

.hl-meter button {
	position: relative;
	width: 34px;
	height: 24px;
	padding: 0;
	background: none;
}

.hl-meter button::before,
.hl-meter button::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 3px;
	margin-top: -1.5px;
	border-radius: 2px;
}

.hl-meter button::before {
	background: rgba(255, 255, 255, 0.25);
}

.hl-meter button::after {
	background: #7fe0ae;
	transform: scaleX(var(--f, 0));
	transform-origin: left;
}

.hl-story__hint {
	position: absolute;
	left: 50%;
	bottom: 26px;
	z-index: 4;
	margin: 0;
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
	transform: translateX(-50%);
	transition: opacity 0.5s;
}

.hl-story__hint.is-off {
	opacity: 0;
}

.hl-story__caps {
	position: absolute;
	left: max(20px, calc((100vw - var(--hl-container)) / 2));
	bottom: clamp(70px, 14vh, 150px);
	z-index: 3;
	width: min(480px, calc(100% - 40px));
}

.hl-cap {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	opacity: 0;
	transform: translateY(18px);
	pointer-events: none;
	transition: opacity 0.8s var(--hl-ease), transform 0.8s var(--hl-ease);
}

.hl-cap.is-on {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.hl-cap__no {
	font-family: var(--hl-font-serif);
	font-size: 1.3rem;
	font-style: italic;
	color: #7fe0ae;
}

.hl-cap__h {
	margin: 4px 0 12px;
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	color: #fff;
}

.hl-cap p {
	margin: 0 0 10px;
	color: rgba(255, 255, 255, 0.85);
}

.hl-cap__q {
	font-family: var(--hl-font-serif);
	font-size: 1.3rem;
	font-style: italic;
	line-height: 1.3;
	color: #7fe0ae !important;
}

.hl-story__cta {
	position: absolute;
	right: max(20px, calc((100vw - var(--hl-container)) / 2));
	bottom: clamp(40px, 11vh, 110px);
	z-index: 5;
	opacity: 0;
	transform: translateY(20px);
	pointer-events: none;
	transition: opacity 1s var(--hl-ease), transform 1s var(--hl-ease), background 0.4s;
}

.hl-story__cta.is-on {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

@media (max-width: 860px) {
	.hl-story__shade {
		background: linear-gradient(0deg, rgba(2, 20, 31, 0.95) 0%, rgba(2, 20, 31, 0.6) 45%, rgba(2, 20, 31, 0.05) 78%);
	}

	.hl-story__top {
		font-size: 0.65rem;
		flex-wrap: wrap;
	}

	.hl-story__hint {
		display: none;
	}

	.hl-story__caps {
		bottom: 88px;
	}

	.hl-story__cta {
		left: 20px;
		right: auto;
		bottom: 18px;
	}
}

/* ---------- Chương 3: một gia đình, một ngôi nhà ---------- */
.hl-fam {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.hl-fam[hidden] {
	display: none;
}

.hl-fam__who {
	margin-bottom: var(--hl-space-3);
	font-family: var(--hl-font-serif);
	font-size: 1.4rem;
	line-height: 1.25;
	color: var(--hl-color-navy);
}

.hl-steps {
	display: grid;
	gap: 6px;
}

.hl-step {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	width: 100%;
	padding: 14px 16px;
	border-radius: var(--hl-radius-m);
	text-align: left;
	opacity: 0.55;
	transition: opacity 0.5s, background 0.5s;
}

.hl-step:hover {
	opacity: 0.85;
}

.hl-step.is-on {
	background: #fff;
	opacity: 1;
	box-shadow: 0 1px 0 var(--hl-color-line);
}

.hl-step__n {
	min-width: 30px;
	font-family: var(--hl-font-serif);
	font-size: 1.4rem;
	font-style: italic;
	color: var(--hl-color-green);
}

.hl-step b {
	display: block;
	font-family: var(--hl-font-serif);
	font-size: 1.7rem;
	font-weight: 500;
	line-height: 1.1;
	color: var(--hl-color-navy);
}

.hl-step__t {
	display: block;
	max-height: 0;
	overflow: hidden;
	font-size: 0.95rem;
	color: var(--hl-color-muted);
	transition: max-height 0.7s var(--hl-ease), margin 0.7s;
}

.hl-step.is-on .hl-step__t {
	max-height: 200px;
	margin-top: 6px;
}

@media (max-width: 860px) {
	.hl-fam {
		grid-template-columns: 1fr;
	}

	.hl-fam .hl-ab {
		order: -1;
	}
}

/* ---------- Chương 4: công trình ---------- */
.hl-works {
	padding-top: 0;
}

.hl-works__grid .hl-card.is-hidden {
	display: none;
}

.hl-card__place {
	margin: -4px 0 0;
	font-size: 0.85rem;
	color: var(--hl-color-green);
}

.hl-card__ask {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	min-height: 44px;
	margin-top: auto;
	padding: 0;
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--hl-color-green);
}

.hl-card__ask .hl-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.5s var(--hl-ease);
}

.hl-card__ask:hover .hl-icon {
	transform: translateX(4px);
}

.hl-works__all {
	margin: var(--hl-space-5) 0 0;
	text-align: center;
}

@media (max-width: 860px) {
	.hl-works__grid {
		display: flex;
		margin-inline: -20px;
		padding: 0 20px 20px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.hl-works__grid {
		scroll-padding-inline: 20px;
		-webkit-overflow-scrolling: touch;
	}

	.hl-works__grid.is-dragging {
		scroll-snap-type: none;
		cursor: grabbing;
		user-select: none;
	}

	.hl-works__grid .hl-card {
		flex: 0 0 82%;
		scroll-snap-align: start;
	}

}

/* ---------- Chương 5: năng lực ---------- */
.hl-power__grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.hl-nums {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--hl-space-4);
	margin-top: var(--hl-space-5);
}

.hl-num b {
	display: block;
	font-family: var(--hl-font-serif);
	font-size: clamp(3rem, 6vw, 4.8rem);
	font-weight: 500;
	line-height: 1;
	color: #fff;
}

.hl-num b sup {
	font-size: 0.45em;
	vertical-align: top;
	margin-left: 2px;
	color: #7fe0ae;
}

.hl-num span {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.75);
}

.hl-power__note {
	margin: var(--hl-space-4) 0 0;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.5);
}

.hl-factory {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--hl-radius-l);
	background: rgba(255, 255, 255, 0.06);
	border: 1px dashed rgba(255, 255, 255, 0.3);
}

.hl-factory img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.hl-factory__badge {
	display: block;
	margin: 22px 22px 0;
	width: max-content;
	padding: 5px 12px;
	border-radius: 999px;
	background: #e6b800;
	font-size: 0.72rem;
	font-weight: 600;
	color: #222;
}

.hl-factory figcaption {
	padding: 18px 22px 22px;
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 860px) {
	.hl-power__grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Khách hàng kể lại ---------- */
.hl-voices__grid {
	display: grid;
	gap: var(--hl-space-4);
	grid-template-columns: repeat(3, 1fr);
}

.hl-voice {
	margin: 0;
	padding: 28px 28px 24px;
	border-radius: var(--hl-radius-l);
	background: #fff;
	box-shadow: 0 1px 0 var(--hl-color-line);
}

.hl-voice__stars {
	display: block;
	margin-bottom: 10px;
	letter-spacing: 3px;
	color: #e4a21a;
}

.hl-voice blockquote {
	margin: 0 0 16px;
	font-family: var(--hl-font-serif);
	font-size: 1.55rem;
	line-height: 1.3;
	color: var(--hl-color-navy);
}

.hl-voice figcaption {
	font-size: 0.85rem;
	color: var(--hl-color-muted);
}

.hl-voice figcaption b {
	color: var(--hl-color-ink);
}

@media (max-width: 860px) {
	.hl-voices__grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Chương 6: kêu gọi hành động ---------- */
.hl-final {
	position: relative;
	background:
		radial-gradient(800px 400px at 15% 0%, rgba(10, 154, 88, 0.25), transparent 70%),
		linear-gradient(160deg, var(--hl-color-navy) 0%, var(--hl-color-navy-darker) 100%);
	color: rgba(255, 255, 255, 0.85);
}

.hl-final h2 {
	margin-top: 12px;
	color: #fff;
}

.hl-final .hl-lead {
	color: rgba(255, 255, 255, 0.78);
}

.hl-final__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.hl-final__tel a {
	font-weight: 600;
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
}

@media (max-width: 860px) {
	.hl-final__grid {
		grid-template-columns: 1fr;
	}

}

/* ---------- Dải tin cậy, quy trình gọn, khối kêu gọi ---------- */
.hl-trust {
	background: var(--hl-color-navy-dark);
	color: #fff;
}

.hl-trust__grid {
	display: grid;
	gap: var(--hl-space-3);
	grid-template-columns: repeat(4, 1fr);
	padding-block: 28px;
}

.hl-trust__item {
	text-align: center;
}

.hl-trust__item b {
	display: block;
	font-size: clamp(1.8rem, 3.4vw, 2.8rem);
	font-weight: 500;
	line-height: 1.1;
}

.hl-trust__item span {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.7);
}

.hl-final__chat {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: var(--hl-space-4);
}

.hl-final .hl-lead {
	margin-bottom: 0;
}

@media (max-width: 1100px) {
}

@media (max-width: 860px) {
	.hl-trust__grid {
		grid-template-columns: repeat(2, 1fr);
	}

}

.admin-bar .hl-story__top {
	top: calc(var(--hl-header-h) + 48px);
}

@media (max-width: 782px) {
	.admin-bar .hl-story__top {
		top: calc(var(--hl-header-h) + 62px);
	}
}

@media (max-width: 600px) {
	.admin-bar .hl-story__top {
		top: calc(var(--hl-header-h) + 16px);
	}
}

/* Mũi tên và chấm của băng chuyền công trình: chỉ hiện trên mobile. */
.hl-carnav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: var(--hl-space-3);
}

.hl-carnav__prev,
.hl-carnav__next {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--hl-color-line);
	border-radius: 50%;
	background: #fff;
	color: var(--hl-color-navy);
}

.hl-carnav__prev .hl-icon {
	transform: scaleX(-1);
}

.hl-carnav__dots {
	display: flex;
	gap: 4px;
}

.hl-carnav__dots button {
	position: relative;
	width: 24px;
	height: 24px;
}

.hl-carnav__dots button::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(0, 71, 107, 0.25);
	transform: translate(-50%, -50%);
	transition: width 0.4s var(--hl-ease), background 0.4s;
}

.hl-carnav__dots button.is-on::before {
	width: 20px;
	border-radius: 4px;
	background: var(--hl-color-green);
}

@media (min-width: 861px) {
	.hl-carnav {
		display: none;
	}
}
