/* ==========================================================================
   Art direction layer — editorial, cinematic, Vietnamese heritage
   ========================================================================== */

/* Grain & ambient light */
.art-grain {
	position: fixed;
	inset: 0;
	z-index: 9998;
	pointer-events: none;
	opacity: 0.045;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	mix-blend-mode: overlay;
}

.art-ambient {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 55% 45% at 12% 18%, rgba(212, 180, 84, 0.14), transparent 55%),
		radial-gradient(ellipse 50% 40% at 88% 72%, rgba(26, 98, 201, 0.35), transparent 50%),
		radial-gradient(ellipse 80% 50% at 50% 100%, rgba(1, 38, 143, 0.6), transparent 60%);
}

/* Section transitions — soft gradient (no wave SVG) */
.panel--hero::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: clamp(1.5rem, 4vw, 2.5rem);
	background: linear-gradient(180deg, transparent, var(--color-brand-dark));
	pointer-events: none;
	z-index: 2;
}

.panel--about::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: clamp(3rem, 8vw, 5rem);
	background: linear-gradient(180deg, transparent, var(--color-brand));
	pointer-events: none;
	z-index: 2;
}

/* Hero */
.art-hero {
	overflow-x: hidden;
	overflow-y: visible;
}

.panel.panel--hero.art-hero {
	padding-bottom: clamp(2.5rem, 5vh, 3.5rem);
}

.art-hero .panel__bg--dongson::after {
	width: min(55vw, 560px);
	height: min(55vw, 560px);
	right: -5%;
	opacity: 0.16;
	filter: blur(0.5px);
}

.art-hero__glow {
	position: absolute;
	width: 70%;
	height: 70%;
	right: -10%;
	top: 10%;
	background: radial-gradient(circle, rgba(212, 180, 84, 0.2) 0%, transparent 65%);
	pointer-events: none;
}

.art-hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
	position: relative;
}

.art-hero__index {
	position: absolute;
	left: -0.15em;
	top: -0.35em;
	font-family: var(--font-display);
	font-size: clamp(5rem, 14vw, 11rem);
	font-weight: 500;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px rgba(212, 180, 84, 0.12);
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

.art-hero__year {
	position: absolute;
	right: 0;
	top: 0;
	writing-mode: vertical-rl;
	font-family: var(--font-display);
	font-size: 0.75rem;
	letter-spacing: 0.35em;
	color: var(--color-gold);
	opacity: 0.55;
	pointer-events: none;
}

.art-hero__copy {
	position: relative;
	z-index: 2;
	padding-top: 1rem;
	overflow: visible;
}

.art-hero__title {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	line-height: 1;
	overflow: visible;
	padding: 0.12em 0 0;
}

.art-line {
	display: block;
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.02em;
	padding: 0.1em 0 0;
	overflow: visible;
	color: #e8d49a;
	text-shadow:
		0 1px 0 rgba(255, 255, 255, 0.18),
		0 2px 22px rgba(212, 180, 84, 0.35);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

.art-line--1,
.art-line--2 {
	font-size: clamp(2.75rem, 7vw, 4.75rem);
	font-style: normal;
	padding-left: 0;
}

.art-line--2 {
	margin-top: -0.12em;
	padding-top: 0.05em;
}

.art-hero__lead {
	font-size: 1.1rem;
	font-weight: 300;
	max-width: 32rem;
	border-left: 2px solid var(--color-gold);
	padding-left: 1.25rem;
	margin-top: 1.75rem;
}

.art-hero__lead em {
	font-style: italic;
	color: var(--color-gold-light);
}

/* Hero — khung ảnh tối giản */
.art-hero__stage {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 320px;
	pointer-events: none;
}

.art-hero__stage .hero__caption {
	pointer-events: none;
}

/* Khung hero — tối giản, trang trọng */
.art-frame {
	margin: 0;
	text-align: center;
	pointer-events: none;
}

.frame-classic {
	position: relative;
	display: inline-block;
	width: min(100%, 440px);
	padding: 8px;
	background: transparent;
	border: 1px solid rgba(212, 180, 84, 0.55);
	outline: 1px solid rgba(212, 180, 84, 0.18);
	outline-offset: 5px;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
	pointer-events: none;
}

.frame-classic__mat {
	position: relative;
	z-index: 1;
	padding: 0;
	background: transparent;
	border: none;
}

.frame-classic__slideshow {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

.frame-classic__slideshow .frame-classic__photo {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	filter: contrast(1.02) saturate(0.95);
	opacity: 0;
	transition: opacity 1.4s ease-in-out;
	z-index: 0;
}

.frame-classic__slideshow .frame-classic__photo.is-active {
	opacity: 1;
	z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
	.art-frame {
		animation: frame-hang-in 1.2s var(--ease-luxury) 0.5s both;
	}
}

@keyframes frame-hang-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Section art index */
.panel[data-panel]:not(.art-hero) .panel__inner {
	position: relative;
}

.section-art-index {
	position: absolute;
	left: 50%;
	top: 42%;
	transform: translate(-50%, -50%);
	display: none;
	font-family: var(--font-display);
	font-size: clamp(5rem, 14vw, 9rem);
	font-weight: 500;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px rgba(212, 180, 84, 0.08);
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

/* Sections căn giữa nội dung */
.panel--about .panel__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.panel--about .about-grid {
	text-align: left;
	width: 100%;
}

.panel--about .art-quote {
	margin-left: auto;
	margin-right: auto;
}

.panel--awards .panel__inner,
.panel--commitment .panel__inner,
.panel--contact .panel__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.panel--awards .panel__inner > *,
.panel--commitment .panel__inner > *,
.panel--contact .panel__inner > * {
	position: relative;
	z-index: 1;
	width: 100%;
}

.panel--awards .section-head,
.panel--commitment .section-head,
.panel--contact .section-head {
	max-width: 40rem;
}

/* Liên hệ — full viewport, căn giữa (riêng section này) */
.panel--contact {
	min-height: 100svh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.panel--contact .panel__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 920px;
	margin: 0 auto;
	text-align: center;
	gap: 0;
}

.panel--contact .section-art-index {
	display: block;
	left: auto;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	opacity: 1;
}

.panel--contact .section-head {
	margin: 0 auto;
}

.panel--contact .section-head__desc {
	max-width: 28rem;
	margin: 1rem auto 0;
	color: var(--color-text-muted);
	font-size: 1.05rem;
	line-height: 1.6;
}

.panel--contact .contact-grid {
	margin-top: 2.25rem;
}

@media (min-width: 768px) {
	.panel--contact .section-art-index {
		right: -1rem;
	}
}

@media (max-width: 767px) {
	.panel--contact {
		padding-bottom: 5.5rem;
	}

	.panel--contact .section-art-index {
		display: none;
	}

	.panel--contact .contact-grid {
		margin-top: 1.75rem;
	}
}

/* Pull quote — editorial */
.art-quote {
	margin: 2.5rem 0 0;
	padding: 2rem 0 2rem 2rem;
	border-left: 3px solid var(--color-gold);
	max-width: 28rem;
}

.art-quote p {
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	font-style: italic;
	line-height: 1.45;
	color: var(--color-gold-light);
	margin: 0;
}

.art-quote cite {
	display: block;
	margin-top: 1rem;
	font-family: var(--font-body);
	font-size: 0.72rem;
	font-style: normal;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

/* Stats — artistic tiles */
.stats {
	border: none;
	background: transparent;
	gap: 1.25rem;
}

.stat {
	position: relative;
	padding: 2rem 1.25rem;
	background: rgba(1, 38, 143, 0.35);
	border: 1px solid var(--color-gold-muted);
	overflow: hidden;
}

.stat::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--color-gold-shine);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.6s var(--ease-luxury);
}

.stat:hover::before {
	transform: scaleX(1);
}

.stat__value {
	font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Awards — overlapping gallery */
.awards-gallery {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-top: 3rem;
}

@media (min-width: 768px) {
	.awards-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: center;
		justify-content: center;
		padding: 2rem 0;
	}

	.award-card {
		max-width: 420px;
		width: 100%;
	}

	.award-card:first-child {
		transform: rotate(-2deg) translateY(-12px);
		z-index: 2;
		justify-self: end;
	}

	.award-card:last-child {
		transform: rotate(2.5deg) translateY(24px);
		margin-top: -3rem;
		justify-self: start;
	}
}

.award-card {
	box-shadow:
		0 32px 64px rgba(0, 0, 0, 0.4),
		0 0 0 1px rgba(212, 180, 84, 0.2);
	transition: transform 0.5s var(--ease-luxury), box-shadow 0.5s var(--ease-luxury);
}

.award-card:hover {
	transform: rotate(0deg) scale(1.02) !important;
	box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 48px rgba(212, 180, 84, 0.15);
}

/* Commitment — vertical timeline feel */
.commitment-list {
	position: relative;
}

.commitment-list::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 1px;
	background: linear-gradient(180deg, transparent, var(--color-gold-muted), transparent);
	display: none;
}

@media (min-width: 768px) {
	.commitment-list::before {
		display: block;
	}
}

.commitment-card {
	backdrop-filter: blur(8px);
}

.commitment-card h3 {
	font-size: 1.5rem;
}

/* Contact — finale */
.panel--contact .section-head__title {
	font-size: clamp(2rem, 4vw, 3rem);
}

.contact-item__value {
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Scroll progress */
.art-scroll-progress {
	position: fixed;
	left: 0;
	top: 0;
	width: 3px;
	height: 100%;
	background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold-deep));
	z-index: 200;
	box-shadow: 0 0 12px rgba(212, 180, 84, 0.5);
	transform: scaleY(0);
	transform-origin: top center;
	will-change: transform;
}

/* Header — minimal art */
.site-header {
	border-bottom-color: rgba(212, 180, 84, 0.15);
}

.nav-desktop__list a.is-active {
	color: var(--color-gold-light);
	box-shadow: inset 0 -2px 0 var(--color-gold);
	background: transparent;
}

/* Reveal — stagger children */
.reveal-stagger > * {
	opacity: 0;
	transform: translateY(28px);
	transition:
		opacity 0.8s var(--ease-luxury),
		transform 0.8s var(--ease-luxury);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

.reveal-stagger.is-visible > * {
	opacity: 1;
	transform: translateY(0);
}

/* Hero title line reveal */
.art-line {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
	.art-hero:not(.is-visible) .art-line {
		opacity: 0;
		transform: translateY(36px);
	}

	.art-hero.is-visible .art-line--1 {
		animation: art-line-in 1.1s var(--ease-luxury) 0.15s both;
	}

	.art-hero.is-visible .art-line--2 {
		animation: art-line-in 1.1s var(--ease-luxury) 0.4s both;
	}
}

@keyframes art-line-in {
	from {
		opacity: 0;
		transform: translateY(36px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (min-width: 768px) {
	.section-art-index {
		display: block;
	}

	.art-hero__index {
		display: block;
	}
}

@media (max-width: 767px) {
	.art-hero__index,
	.art-hero__year {
		display: none;
	}

	.panel.panel--hero.art-hero {
		padding-bottom: 1rem;
	}

	.panel.panel--hero.art-hero::after {
		display: none;
	}

	.panel--about {
		padding-top: 2rem;
	}

	.panel--about::after {
		height: 2rem;
	}

	.art-hero__grid {
		gap: 1.25rem;
	}

	.art-hero__stage {
		min-height: 0;
	}

	.art-hero__lead {
		margin-top: 1.25rem;
	}

	.frame-classic__slideshow {
		aspect-ratio: 3 / 4;
	}

	.scroll-hint {
		bottom: 1rem;
	}

	.frame-classic {
		width: min(100%, 340px);
		padding: 6px;
		outline-offset: 4px;
	}

	/* Không ẩn nội dung khi cuộn — tránh vùng trống giữa section 1–2 */
	.reveal,
	.reveal-stagger > * {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

@media (min-width: 900px) {
	.panel.panel--hero.art-hero {
		overflow: hidden;
	}

	.art-hero__grid {
		width: fit-content;
		max-width: calc(100% - 1rem);
		margin-inline: auto;
		grid-template-columns: minmax(0, 1fr) 450px;
		gap: 1.25rem;
		align-items: center;
	}

	.art-hero__stage {
		justify-content: center;
		align-items: flex-start;
		width: auto;
	}

	.art-frame {
		width: 450px;
		max-width: 100%;
	}

	.frame-classic {
		width: 450px;
		max-width: 100%;
		padding: 10px;
		outline-offset: 6px;
		flex-shrink: 0;
	}

	.scroll-hint {
		bottom: 1.5rem;
	}
}


@media (prefers-reduced-motion: reduce) {
	.frame-classic__slideshow .frame-classic__photo {
		transition: none;
	}

	.art-frame,
	.frame-classic,
	.brand-watermark__dongson {
		animation: none !important;
	}

	.art-line {
		opacity: 1;
		transform: none;
	}
}
