/* ==========================================================================
   Giới thiệu chung (Figma "Demo - Về chúng tôi")
   ========================================================================== */

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/montserrat-vietnamese.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/montserrat-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Intro + stats panel ---------- */
.about-intro { padding-top: 40px; }
.about-intro .section-title { font-weight: 700; }
.about-intro__head {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 65px; align-items: start;
	margin-bottom: 24px;
}
.about-intro__head p { font-size: 16px; line-height: 24px; color: var(--c-body); }

.about-stats {
	position: relative; isolation: isolate; overflow: hidden;
	max-width: 1392px; min-height: 596px; margin: 0 auto;
	border-radius: 24px; color: #fff;
}
@media (max-width: 1440px) { .about-stats { margin-inline: var(--gutter); } }
.about-stats__media { position: absolute; inset: 0; z-index: -1; }
.about-stats__media img { width: 100%; height: 100%; object-fit: cover; }
.about-stats__media::after { content: ""; position: absolute; inset: 0; background: rgba(5, 23, 55, .6); }
.about-stats__list {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
	margin: 0; padding: 57px 66px 58px;
}
.about-stat { display: flex; flex-direction: column; gap: 32px; padding-left: 24px; border-left: 2px solid rgba(255, 255, 255, .8); min-height: 301px; }
.about-stat:nth-child(1) { margin-top: 180px; }
.about-stat:nth-child(2) { margin-top: 90px; }
.about-stat dt { font-size: clamp(44px, 3.7vw, 64px); font-weight: 700; line-height: 1.19; letter-spacing: -0.96px; }
.about-stat dd { display: flex; flex-direction: column; gap: 24px; margin: 0; }
.about-stat strong { font-size: 20px; font-weight: 600; line-height: 28px; }
.about-stat span { font-size: 16px; line-height: 24px; }

/* ---------- Về chúng tôi ---------- */
.about-story__grid { display: grid; grid-template-columns: minmax(0, 845fr) minmax(0, 411fr); gap: 24px; align-items: center; }
.about-quote {
	position: relative; margin: 0 0 0 59px; padding: 40px 69px 40px 70px;
	background: var(--c-bg-soft); border-radius: 24px;
	box-shadow: 8px 8px 24px rgba(7, 51, 128, .04), 40px 40px 60.8px rgba(16, 49, 95, .05);
}
.about-quote p { font-size: clamp(18px, 1.4vw, 24px); line-height: 1.417; color: var(--c-body); }
.about-quote strong { font-weight: 500; color: var(--c-primary); }
.about-quote__icon { position: absolute; left: -59px; bottom: -58px; }
.about-quote__icon svg { width: 117px; height: 117px; }
.about-years { justify-self: start; margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 24px; white-space: nowrap; }
.about-years__num {
	display: flex; align-items: center; gap: 10px;
	font-size: clamp(140px, 17vw, 230px); font-weight: 900; line-height: .8; letter-spacing: .01em; color: var(--c-orange);
}
.about-years__num small { font-size: .556em; font-weight: 500; letter-spacing: 0; }
[data-count-up] { position: relative; }
[data-count-up]::before { content: attr(data-count-up); visibility: hidden; }
[data-count-up] > span { position: absolute; top: 0; right: 0; }
.about-years__label { font-size: clamp(24px, 3.33vw, 48px); font-weight: 500; line-height: 1.5; color: var(--c-primary); }

/* ---------- Tầm nhìn / Sứ mệnh ---------- */
/* Khối trên (Về chúng tôi) đã có đệm dưới 96px = khoảng cách trong Figma -> không cộng thêm */
.about-vision { padding-top: 0; padding-bottom: 96px; overflow-x: clip; }
.split--center { align-items: center; }
.about-vision__img { aspect-ratio: 628 / 473; border-radius: var(--radius); }
.about-vision__body { gap: 40px; padding-top: 0; }
.about-vision__body .section-title { margin-bottom: 24px; }
.about-vision__body p { font-size: 16px; line-height: 24px; color: var(--c-body); }
.about-vision__body hr { width: 100%; height: 1px; margin: 0; border: 0; background: var(--c-primary); }
.about-mission { margin-top: 8px; padding-left: 24px; list-style: disc; display: grid; gap: 8px; }
.about-mission li { font-size: 16px; font-style: italic; font-weight: 600; line-height: 24px; color: var(--c-primary); }
.about-mission li::marker,
.about-mission__lead { color: var(--c-orange); }
.about-vision__mascot { display: none; }
@media (min-width: 1500px) {
	/*
	 * Figma 978:158 (321×264): đáy thấp hơn đáy danh sách 115px (≈36% chiều rộng), mép phải lố ra
	 * ngoài cột tối đa 132px. Neo theo đáy (đoạn mô tả dài/ngắn không làm mascot đè chữ).
	 * Rộng = phần lố ra + 134px nên mép trái luôn nằm sau dòng cam kết dài nhất (~127px trước mép
	 * cột) — tối đa 266px khi màn ≥ ~1620px, nhỏ dần tới ~200px ở 1500px. Chừa khe với chữ như Figma.
	 */
	.about-vision__mascot {
		--out: min(132px, (100vw - 1344px) / 2 - 16px);
		display: block; position: absolute; top: auto; right: calc(var(--out) * -1);
		width: min(321px, 134px + var(--out)); height: auto;
		bottom: calc(min(321px, 134px + var(--out)) * -0.36);
		pointer-events: none;
	}
}

/* ---------- Giá trị cốt lõi ---------- */
.value-rows { display: grid; gap: 24px; }
.value-row { display: grid; grid-template-columns: 411fr 845fr; gap: 24px; min-height: 369px; }
.value-row--reverse { grid-template-columns: 845fr 411fr; }
.value-row--reverse .value-card { order: 2; }
/* Figma: thẻ trắng cao 369px, nội dung căn giữa theo chiều dọc; thẻ 01 trong Figma là trạng thái rê chuột */
.value-card {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
	padding: 28px 40px; background: #fff; border-radius: var(--radius-sm); color: var(--c-body);
	transition: background-color .25s, color .25s, box-shadow .25s;
}
/* Hoa văn Figma 374:2612: ảnh vuông 578px xoay 90°, lố qua mép trái thẻ 165px */
.value-card::after {
	content: ""; position: absolute; left: -165px; top: 0; z-index: -1;
	width: max(578px, calc(100% + 165px)); aspect-ratio: 1;
	background: url("../img/pattern.webp") center / 100% 100%;
	transform: rotate(90deg); opacity: 0; transition: opacity .25s;
}
.value-card__num { margin-bottom: 24px; font-size: 64px; font-weight: 700; line-height: 1.2; }
.value-card__title { margin-bottom: 16px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; line-height: 1.21; text-transform: uppercase; color: var(--c-primary); transition: color .25s; }
.value-card__text { font-size: clamp(16px, 1.5vw, 20px); line-height: 24px; }
@media (hover: hover) {
	.value-card:hover { background: var(--c-primary); color: #fff; box-shadow: 16px 16px 16px rgba(0, 0, 0, .08); }
	.value-card:hover .value-card__title { color: #fff; }
	.value-card:hover::after { opacity: .1; }
}
.value-row__media { position: relative; overflow: hidden; border-radius: var(--radius-sm); min-height: 240px; }
.value-row__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Năng lực nhà máy ---------- */
/* Figma: chữ số liệu cuối cách nền timeline 37px (dải mây phủ lên chỗ chuyển nền) */
.about-factory { padding-bottom: 17px; }
.about-factory .section-head { max-width: 954px; margin-bottom: 24px; }
.about-factory .section-sub { margin-top: 24px; }
.factory-video { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1280 / 730; margin-top: 24px; }
.factory-video img { width: 100%; height: 100%; object-fit: cover; }
.factory-video::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); pointer-events: none; }
.factory-video.is-playing::after { display: none; }
.factory-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.factory-video__play {
	position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%);
	display: grid; place-items: center; width: 111px; height: 111px; transition: transform .2s;
}
.factory-video__play:hover { transform: translate(-50%, -50%) scale(1.08); }
.factory-video__play svg { width: 111px; height: 111px; }
.factory-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px 0 0; }
.factory-stats > div {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	min-height: 112px; padding: 8px 16px; text-align: center;
}
.factory-stats > div + div { border-left: 1px solid #dbe0e6; }
.factory-stats dt { font-size: clamp(28px, 2.4vw, 40px); font-weight: 700; line-height: 1; letter-spacing: .4px; color: var(--c-primary); }
.factory-stats dd { margin: 0; font-size: 16px; line-height: 22px; color: #39424c; }

/* ---------- Timeline ---------- */
.about-timeline {
	position: relative; isolation: isolate; overflow: hidden;
	/* Figma: chữ mốc cuối cách đáy khối 422px; ảnh nhà máy (730px) đè lên phần dưới timeline */
	padding: 90px 0 clamp(260px, 23.26vw, 402px);
	background: #f0f7ff; font-family: "Montserrat", var(--font);
}
/* Dải mây trắng (Figma 538:1145) phủ lên mép trên nền timeline, bắt đầu cao hơn nền 59px (ở 1728px) */
.about-timeline::before {
	content: ""; position: absolute; left: 0; right: 0; top: -3.41vw; z-index: -1;
	aspect-ratio: 1728 / 233; pointer-events: none;
	background: url("../img/about-clouds.webp") center top / 100% 100% no-repeat;
}
.about-timeline__bg { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: min(730px, 52vw); }
.about-timeline__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.about-timeline__bg::before {
	content: ""; position: absolute; inset: 0 0 auto; height: 45%; z-index: 1;
	background: linear-gradient(#f0f7ff, rgba(240, 247, 255, 0));
}
.timeline-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 58px; font-family: var(--font); font-weight: 800; }
.timeline-head__num { font-size: clamp(64px, 5.8vw, 100px); line-height: 1.2; letter-spacing: -.015em; color: var(--c-orange); }
.timeline-head__text { display: flex; flex-direction: column; gap: 9px; padding-top: 11px; font-size: clamp(26px, 2.3vw, 40px); line-height: 1.2; letter-spacing: -.015em; text-transform: uppercase; color: var(--c-primary); }
.timeline-head__text small { font-family: "Montserrat", var(--font); font-size: 16px; font-weight: 600; line-height: 22px; letter-spacing: 0; }

/* Figma: chấm 20px nằm ngang dòng năm, nối vào trục bằng đoạn 96px, chữ cách trục 215px */
.timeline {
	--year: clamp(44px, 3.7vw, 64px); --year-mid: calc(16px + var(--year) * .595); --arm: 96px; --gap: clamp(140px, 12.4vw, 215px);
	position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(120px, auto);
	column-gap: 0; max-width: 1242px; margin: 0 auto;
}
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--c-primary); }
.timeline__item { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px 0; color: #262626; grid-row: var(--row) / span 2; }
.timeline__item--left { grid-column: 1; text-align: right; padding-right: var(--gap); align-items: flex-end; }
.timeline__item--right { grid-column: 2; padding-left: var(--gap); }
.timeline__item::after {
	content: ""; position: absolute; top: var(--year-mid); width: var(--arm); height: 1px; background: var(--c-primary);
}
.timeline__item::before {
	content: ""; position: absolute; top: calc(var(--year-mid) - 10px); z-index: 1;
	width: 20px; height: 20px; border-radius: 50%; background: var(--c-primary);
}
.timeline__item--left::after { right: 0; }
.timeline__item--left::before { right: var(--arm); }
.timeline__item--right::after { left: 0; }
.timeline__item--right::before { left: var(--arm); }
.timeline__year { margin-bottom: 24px; font-family: var(--font); font-size: var(--year); font-weight: 800; line-height: 1.19; letter-spacing: -.015em; color: var(--c-orange); }
.timeline__title { font-family: var(--font); font-size: 20px; font-weight: 700; line-height: 28px; text-transform: uppercase; color: var(--c-primary); }
.timeline__text { max-width: 374px; font-size: 16px; line-height: 22px; }
.timeline__item:nth-child(3) .timeline__text { max-width: 407px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.about-intro__head { grid-template-columns: 1fr; }
	.about-stats__list { grid-template-columns: 1fr; padding: 40px 24px; }
	.about-stat { min-height: 0; margin-top: 0 !important; gap: 12px; }
	.about-stat dd { gap: 8px; }
	.about-story__grid { grid-template-columns: 1fr; }
	.about-quote { margin-left: 0; padding: 32px 24px 64px; }
	.about-quote__icon { left: 24px; bottom: -40px; }
	.about-quote__icon svg { width: 80px; height: 80px; }
	.about-years { justify-self: center; margin-top: 48px; }
	.value-row, .value-row--reverse { grid-template-columns: minmax(0, 1fr); }
	.value-card { padding: 28px 24px; }
	.value-row--reverse .value-card { order: 0; }
	.value-row__media { aspect-ratio: 16 / 9; min-height: 0; width: 100%; }
	.factory-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
	.factory-stats > div:nth-child(3) { border-left: 0; }
	.factory-stats > div { justify-content: flex-start; min-height: 0; padding-inline: 8px; }
	.factory-stats dt { font-size: clamp(20px, 5.6vw, 28px); white-space: nowrap; }
	.about-timeline { padding-bottom: calc(52vw + 24px); }
	.timeline { grid-template-columns: 1fr; padding-left: 32px; }
	.timeline::before { left: 8px; }
	.timeline__item, .timeline__item--left, .timeline__item--right {
		grid-column: 1; grid-row: auto; text-align: left; align-items: flex-start; padding: 16px 0 16px 24px;
	}
	.timeline__item::after { display: none; }
	.timeline__item::before, .timeline__item--left::before, .timeline__item--right::before { left: -30px; right: auto; top: calc(var(--year-mid) - 6px); width: 12px; height: 12px; }
	.timeline__year { margin-bottom: 8px; }
}
