/* =========================================================
   LumiPink — Story (đồng bộ Home/Shop, cosmetic-compliant)
   ========================================================= */

.lp-story {
	background:
		radial-gradient(900px 520px at 90% 8%, rgba(245,184,204,0.12), transparent 60%),
		radial-gradient(760px 460px at 0% 40%, rgba(232,200,120,0.12), transparent 62%),
		var(--lp-bg);
	isolation: isolate;
}

/* ===== HERO ===== */
.lp-story-hero {
	padding: 100px 0 100px;
	text-align: center;
}
.lp-story-hero__intro {
	max-width: 46rem;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}
.lp-story-hero__quote {
	font-family: var(--lp-font-serif);
	font-style: italic;
	font-size: clamp(1.2rem, 2.4vw, 2rem);
	line-height: 1.5;
	color: rgba(61,43,54,0.72);
	margin: 0;
	white-space: nowrap;
}
@media (max-width: 640px) {
	.lp-story-hero__quote {
		white-space: normal;
		font-size: clamp(1.1rem, 5vw, 1.5rem);
	}
}
.lp-story-hero__media {
	max-width: 40rem;
	margin: 64px auto 0;
}
.lp-story-hero__arch {
	border-top-left-radius: 400px;
	border-top-right-radius: 400px;
	overflow: hidden;
	aspect-ratio: 3/4;
	box-shadow: 0 24px 56px rgba(61,43,54,0.14);
	outline: 4px solid rgba(201,151,90,0.75);
	outline-offset: 6px;
	transform: translateZ(0);
}
.lp-story-hero__arch img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: none;
	transition: none;
	backface-visibility: hidden;
}

.lp-story-hero__title {
	font-family: var(--lp-font-serif);
	font-style: italic;
	font-size: clamp(3rem, 7vw, 5.5rem);
	font-weight: 600;
	line-height: 1.1;
	margin: 0;
	padding: 0.06em 0.14em;
	background:
		linear-gradient(105deg,
			var(--lp-charcoal) 0%,
			#5b3448 30%,
			#B7742C 42%,
			#FFE7A3 48%,
			#C9975A 54%,
			#5b3448 66%,
			var(--lp-charcoal) 100%);
	background-size: 260% 100%;
	background-position: 150% 0;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow: 0 12px 34px rgba(183,116,44,0.12);
	animation: lp-story-bronze-sweep 5.6s linear infinite;
}

/* ===== TIMELINE ===== */
.lp-story-timeline {
	position: relative;
	padding: 60px 0 120px;
	overflow: hidden;
}
.lp-story-line {
	position: absolute;
	top: 60px;
	bottom: 60px;
	left: 50%;
	width: 3px;
	transform: translateX(-50%);
	background: linear-gradient(to bottom, transparent 0%, rgba(201,151,90,0.55) 20%, rgba(232,200,120,0.6) 50%, rgba(201,151,90,0.55) 80%, transparent 100%);
	border-radius: 2px;
	overflow: hidden;
}
.lp-story-line::after {
	content: '';
	position: absolute;
	left: 0;
	top: -120px;
	bottom: -120px;
	width: 100%;
	background: linear-gradient(to bottom, transparent 0%, transparent 38%, rgba(255,220,120,0.9) 46%, rgba(255,245,200,1) 50%, rgba(255,220,120,0.9) 54%, transparent 62%, transparent 100%);
	background-size: 100% 220%;
	background-position: 0 -120%;
	animation: lp-line-shine 2.8s ease-in-out infinite;
}
@keyframes lp-line-shine {
	0%   { background-position: 0 -120%; opacity: 0; }
	10%  { opacity: 1; }
	90%  { opacity: 1; }
	100% { background-position: 0 120%; opacity: 0; }
}
@media (max-width: 900px) {
	.lp-story-line { display: none; }
}

.lp-story-chapter {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
	margin-bottom: 120px;
	contain: layout;
}
.lp-story-chapter:last-child { margin-bottom: 0; }

/* ===== TEXT ===== */
.lp-story-chapter--left .lp-story-chapter__text {
	text-align: right;
	align-items: flex-end;
	padding-right: 40px;
}
.lp-story-chapter--right .lp-story-chapter__text {
	text-align: left;
	align-items: flex-start;
	padding-left: 40px;
}
.lp-story-chapter__text {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.lp-story-chapter__text p {
	font-size: 1.25rem;
	line-height: 1.75;
	color: rgba(61, 43, 54, 0.923);
	margin: 0;
	max-width: 30rem;
}

/* ===== Số thứ tự + tiêu đề ===== */
.lp-story-chapter__head {
	display: flex;
	align-items: baseline;
	gap: 16px;
}
.lp-story-chapter__index {
	font-family: var(--lp-font-serif);
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1;
	color: rgba(232,200,120,0.7);
	flex-shrink: 0;
}
.lp-story-chapter__title {
	font-family: var(--lp-font-serif);
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	line-height: 1.2;
	margin: 0;
	padding: 0.04em 0.08em;
	background: linear-gradient(100deg, var(--lp-charcoal) 0%, var(--lp-charcoal) 36%, #B7742C 43%, #F5D878 48%, #C9975A 53%, var(--lp-charcoal) 62%, var(--lp-charcoal) 100%);
	background-size: 250% 100%;
	background-position: 150% 0;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* ===== MEDIA CONTAINER ===== */
.lp-story-chapter__media {
	display: flex;
	align-items: center;
}
.lp-story-chapter--left .lp-story-chapter__media {
	justify-content: flex-start;
	padding-left: 50px;
}
.lp-story-chapter--right .lp-story-chapter__media {
	justify-content: flex-end;
	padding-right: 40px;
}

/* ===== WRAPPER — bo tròn + clip + NGHIÊNG CẢ CARD =====
   (trước đây transform nằm ở <img>, nên chỉ ảnh nghiêng
   còn khung bo góc/shadow đứng yên. Giờ chuyển rotate
   sang chính .__wrap để cả card nghiêng như cánh quạt xòe) */
.lp-story-chapter__media__wrap {
	width: 100%;
	max-width: 22rem;
	aspect-ratio: 3/4;
	overflow: hidden;
	border-radius: 24px;
	box-shadow: 0 22px 48px rgba(61,43,54,0.13);
	will-change: transform;
	isolation: isolate;
	transform: rotate(3deg) translateZ(0);
	transition: transform 0.5s ease;
}
.lp-story-chapter--right .lp-story-chapter__media__wrap {
	transform: rotate(-3deg) translateZ(0);
}
.lp-story-chapter__media__wrap:hover {
	transform: rotate(0deg) translateZ(0);
}

/* ===== ẢNH CHAPTER =====
   Chỉ còn scale để lấp đầy khung sau khi card xoay,
   không rotate riêng ảnh nữa (tránh lệch với card) */
.lp-story-chapter__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
	box-shadow: none;
	transform: scale(1.12);
	backface-visibility: hidden;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
	.lp-story-chapter {
		grid-template-columns: 1fr;
		gap: 28px;
		margin-bottom: 72px;
	}
	.lp-story-chapter--left .lp-story-chapter__text,
	.lp-story-chapter--right .lp-story-chapter__text {
		text-align: left;
		align-items: flex-start;
		padding: 0;
	}
	.lp-story-chapter__text p { max-width: none; }
	.lp-story-chapter__media { order: -1; }
	.lp-story-chapter--left .lp-story-chapter__media,
	.lp-story-chapter--right .lp-story-chapter__media {
		justify-content: flex-start;
		padding-left: 0;
		padding-right: 0;
	}
	.lp-story-chapter__media__wrap {
		max-width: 100%;
		transform: none;
	}
	.lp-story-chapter__media img {
		transform: none;
	}
}

/* ===== PULL QUOTE ===== */
.lp-story-quote-block {
	padding: 120px 0 100px;
	text-align: center;
	contain: layout paint;
}
.lp-story-quote-block blockquote {
	max-width: 52rem;
	margin: 0 auto;
}
.lp-story-quote-block p {
	font-family: var(--lp-font-serif);
	font-style: italic;
	font-size: clamp(1.6rem, 3.4vw, 2.6rem);
	line-height: 1.35;
	color: var(--lp-charcoal);
	margin: 0 0 32px;
}
.lp-story-quote-block cite {
	font-style: normal;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--lp-gold);
}
.lp-story-quote-block__rule {
	width: 96px;
	height: 1px;
	background: var(--lp-primary);
	margin: 56px auto 0;
}

/* ===== CLOSING ===== */
.lp-story-closing {
	padding: 100px 0 120px;
	text-align: center;
}
.lp-story-closing h2 {
	font-family: var(--lp-font-serif);
	font-size: clamp(2rem, 4vw, 3rem);
	color: var(--lp-charcoal);
	margin: 0 0 40px;
}
.lp-story-closing__links {
	display: flex;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
}

/* ===== REVEAL ===== */
[data-lp-story-reveal],
[data-lp-story-step] { opacity: 1; }
.js-gsap [data-lp-story-reveal],
.js-gsap [data-lp-story-step] { opacity: 0; }

/* ===== KEYFRAMES ===== */
@keyframes lp-story-bronze-sweep {
	0%   { background-position: 150% 0; }
	100% { background-position: -150% 0; }
}

.is-story-scrolling .lp-story-hero__title,
.is-story-scrolling .lp-story-line::after {
	animation-play-state: paused;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
	.lp-story-hero__title,
	.lp-story-chapter__title,
	.lp-story-line::after {
		animation: none !important;
	}
	.lp-story-hero__arch img,
	.lp-story-chapter__media img,
	.lp-story-chapter__media__wrap {
		transition: none;
	}
}