@font-face {
	font-family: "Great Vibes";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../assets/fonts/great-vibes-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;
}
@font-face {
	font-family: "Great Vibes";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../assets/fonts/great-vibes-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Great Vibes";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../assets/fonts/great-vibes-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(../assets/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;
}
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(../assets/fonts/montserrat-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(../assets/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;
}

*,
*::after,
*::before {
	box-sizing: border-box;
}

:root {
	font-size: 18px;
	--color-text: #fff;
	--color-bg: #131417;
	--color-link: #aaa;
	--color-link-hover: #fff;
	--color-label: #adadad;
	--color-text-alt: #575757;
	--color-text-soft: #7d7d7d;
	--color-caption: #fff;
}

body {
	margin: 0;
	color: var(--color-text);
	background-color: var(--color-bg);
	font-family: "Montserrat",-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
	content: '';
	position: fixed;
	z-index: 1000;
}

.js .loading::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;

}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
	cursor: pointer;
}

a:hover {
	color: var(--color-link-hover);
	outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:focus {
	/* Provide a fallback style for browsers
	 that don't support :focus-visible */
	outline: none;
	background: lightgrey;
}

a:focus:not(:focus-visible) {
	/* Remove the focus indicator on mouse-focus for browsers
	 that do support :focus-visible */
	background: transparent;
}

a:focus-visible {
	/* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
	outline: 2px solid red;
	background: transparent;
}

main {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.unbutton {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
}

.unbutton:focus {
	outline: none;
}

.frame {
	position: relative;
	width: 100%;
	padding: 1rem;
	display: grid;
	grid-template-columns: 100%;
	grid-template-areas: 'nav';
	grid-gap: 0.5rem;
	justify-items: start;
	align-self: start;
	justify-self: start;
	pointer-events: none;
	align-items: center;
	font-size: 0.85rem;
	opacity: 0.7;
}

.frame a {
	pointer-events: auto;
}

.frame a:not(.frame__title-back) {
	white-space: nowrap;
	overflow: hidden;
	position: relative;
}

.frame a:not(.frame__title-back)::before {
	content: '';
	height: 1px;
	width: 100%;
	background: currentColor;
	position: absolute;
	top: 90%;
	transition: transform 0.3s;
	transform-origin: 0% 50%;
}

.frame a:not(.frame__title-back):hover::before {
	transform: scaleX(0);
	transform-origin: 100% 50%;
}

.frame__title {
	grid-area: title;
	display: flex;
}

.frame__title-main {
	font-size: inherit;
	margin: 0;
	font-weight: inherit;
}

.frame__title-back {
	position: relative;
	display: flex;
	align-items: flex-end;
}

.frame__title-back span {
	display: none;
}

.frame__title-back svg {
	fill: currentColor;
}

.frame__nav {
	grid-area: nav;
	display: flex;
	gap: 1.5rem;
}

.project {
	padding: 1rem;
	max-width: 1000px;
	margin: 20vh auto;
	display: grid;
	grid-column-gap: 7vw;
	grid-row-gap: 0.5rem;
}

.project--intro {
	grid-template-columns: 1fr;
	grid-template-areas: 'name' 'date' 'title' 'mission';
}

.project--details {
	grid-template-areas: 'label-default' 'paragraph';
	grid-template-columns: 1fr;
}

.project--left {
	justify-content: start;
}

.project--right {
	justify-content: end;
}

.project--details p {
	grid-area: paragraph;
	max-width: 400px;
}

.project__label--default {
	grid-area: label-default;
}

.project p {
	line-height: 1.4;
	margin: 0;
	color: var(--color-text-alt);
}

.project--intro p { color: var(--color-text-soft); }

.project__label {
	color: var(--color-label);
	font-weight: 300;  /* light */
}

.project__name {
	grid-area: name;
}

.project__date {
	font-weight: 300;  /* light */
	grid-area: date;
}

.project__mission {
	grid-area: mission;
	line-height: 1.4;
}

.project__mission p {
	color: var(--color-text-soft);
}

.project__mission p + p {
	margin-top: 1em;
}

.project__title {
	grid-area: title;
	font-size: clamp(1.5rem, 9.75vw, 6rem);
	font-weight: 400;
	margin: 10vh 0;
	line-height: 1.1;
}

.project__heading {
	color: var(--color-label);
	font-weight: inherit;
	font-size: inherit;
	margin: 0;
}

.gallery-wrap {
	position: relative;
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 40vh auto;
	overflow: hidden;
}

.gallery-wrap--auto {
	height: auto;
}

.gallery-wrap--large {
	height: 110vh;
}

.gallery-wrap--dense {
	margin: 0;
}

.gallery {
	position: relative;
	width: 100%;
	height: 100%;	
	flex: none;
}

.gallery--breakout {
	width: min-content;
}

.gallery__item {
	background-position: 50% 50%;
	background-size: cover;	
	flex: none;
	border-radius: 6px;
	position: relative;
	filter: brightness(1);
}

.gallery__item-cut { 
	overflow: hidden;
	display: grid;
	place-items: center;
}

.gallery__item-inner {
	width: 100%; 
	height: 100%;
	background-position: 50% 50%;
	background-size: cover;	
	background-repeat: no-repeat;
}

.caption {
	font-size: clamp(1rem, 3vw, 1.75rem);
	z-index: 101;
	color: var(--color-caption);
	font-weight: 400;
}

.gallery--row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	--size-factor: 1.25;
	--item-height: 20vh;
}

.gallery--row .gallery__item {
	width: auto;
	aspect-ratio: 2 / 3;
}

.gallery--row .gallery__item--s {
	height: var(--item-height);
}

.gallery--row .gallery__item--m {
	height: calc(var(--size-factor) * var(--item-height));
}

.gallery--row .gallery__item--l {
	height: calc(var(--size-factor) * 2 * var(--item-height));
}

.gallery--row .gallery__item--xl {
	z-index: 100;
	height: calc(var(--size-factor) * 3 * var(--item-height));
}

.gallery--switch.gallery--row .gallery__item--m,
.gallery--switch.gallery--row .gallery__item--l {
	height: var(--item-height);
}

.gallery--row .caption {
	position: absolute;
	width: 100%;
	height: auto;
	bottom: -50vh;
	left: 0;
	padding: 4.5vw;
	max-width: 730px;
	opacity: 0;
}

.gallery--switch.gallery--row .caption {
	bottom: 0;
	opacity: 1;
}

.gallery--one {
	display: grid;
	place-items: center;
}

.gallery--one .gallery__item {
	width: 400%;
	height: 400%;
	filter: brightness(1) hue-rotate(90deg);
}

.gallery--switch.gallery--one .gallery__item {
	width: 100%;
	height: 100%;
	filter: brightness(0.7) hue-rotate(0deg);
}

.gallery--one .caption {
	position: absolute;
	width: 100vw;
	height: 100vh;
	top: 50%;
	left: 50%;
	margin: 100vh 0 0 -50vw;
	font-size: clamp(2rem,5vw,3rem);
	display: grid;
	place-items: center;
}

.gallery--switch.gallery--one .caption {
	margin-top: -50vh;
}

.gallery--grid {
	height: auto;
	display: grid;
	grid-template-columns: repeat(3,auto);
	grid-template-rows: repeat(3,auto);
	row-gap: 2.5vw;
	column-gap: 3vw;
}

.gallery--grid .gallery__item {
	height: 33vh;
	width: 33vw;
}

.gallery--switch.gallery--grid {
	gap: 0;
}

.gallery--switch.gallery--grid .gallery__item {
	height: 110vh;
	width: 110vw;
	filter: brightness(0.65);
}

.gallery--grid .caption {
	position: absolute;
	width: 100vw;
	height: 100vh;
	padding: 0;
	top: 50%;
	left: 50%;
	margin-top: 50vh;
	margin-left: -50vw;
	display: grid;
	place-items: center;
	max-width: none;
	opacity: 0;
}

.gallery--switch.gallery--grid .caption {
	margin-top: -40vh;
	opacity: 1;
}

.gallery--grid .caption p {
	padding: 50vh 30vw 10vh 10vw;
}

.gallery--switch.gallery--grid .caption p {
	margin-top: 0;
}

.gallery--stack {
	display: grid;
	grid-template-columns: repeat(6,1fr);
	align-items: center;
	justify-content: start;
	gap: 2rem;
	padding: 2rem;
	--offset: 1rem;
}

.gallery--stack .gallery__item {
	border-radius: 1.5vw;
	width: 25vw;
	height: 35vw;
	z-index: 1;
}

.gallery--stack-glass .gallery__item {
	filter: opacity(1);
}

.gallery--switch.gallery--stack .gallery__item {
	grid-area: 1 / 1 / 2 / 2;
}

.gallery--stack .caption {
	position: absolute;
	bottom: 0;
	left: 100vw;
	width: 100vw;
	padding: 5vw;
	color: var(--color-text-alt);
	opacity: 0;
	z-index: 0;
}

.gallery--stack .caption p {
	margin: 0;
}

.gallery--switch.gallery--stack .caption {
	left: 0;
	opacity: 1;
}

.gallery--stack-inverse .gallery__item:nth-child(5) {
	z-index: 2;
}
.gallery--stack-inverse .gallery__item:nth-child(4) {
	z-index: 3;
}
.gallery--stack-inverse .gallery__item:nth-child(3) {
	z-index: 4;
}
.gallery--stack-inverse .gallery__item:nth-child(2) {
	z-index: 5;
}
.gallery--stack-inverse .gallery__item:nth-child(1) {
	z-index: 6;
}

.gallery--switch.gallery--stack .gallery__item:nth-child(2) {
	margin-left: var(--offset);
}

.gallery--switch.gallery--stack .gallery__item:nth-child(3) {
	margin-left: calc(var(--offset) * 2);
}

.gallery--switch.gallery--stack .gallery__item:nth-child(4) {
	margin-left: calc(var(--offset) * 3);
}

.gallery--switch.gallery--stack .gallery__item:nth-child(5) {
	margin-left: calc(var(--offset) * 4);
}

.gallery--switch.gallery--stack .gallery__item:nth-child(6) {
	margin-left: calc(var(--offset) * 5);
}

.gallery--switch.gallery--stack-dark .gallery__item:nth-child(2) {
	filter: brightness(0.8);
}

.gallery--switch.gallery--stack-dark .gallery__item:nth-child(3) {
	filter: brightness(0.7);
}

.gallery--switch.gallery--stack-dark .gallery__item:nth-child(4) {
	filter: brightness(0.6);
}

.gallery--switch.gallery--stack-dark .gallery__item:nth-child(5) {
	filter: brightness(0.5);
}

.gallery--switch.gallery--stack-dark .gallery__item:nth-child(6) {
	filter: brightness(0.4);
}

.gallery--switch.gallery--stack-glass .gallery__item {
	opacity: 0.7;
}

.gallery--switch.gallery--stack-scale .gallery__item:nth-child(2) {
	transform: scale(0.98);
}

.gallery--switch.gallery--stack-scale .gallery__item:nth-child(3) {
	transform: scale(0.96);
}

.gallery--switch.gallery--stack-scale .gallery__item:nth-child(4) {
	transform: scale(0.94);
}

.gallery--switch.gallery--stack-scale .gallery__item:nth-child(5) {
	transform: scale(0.92);
}

.gallery--switch.gallery--stack-scale .gallery__item:nth-child(6) {
	transform: scale(0.9);
}

.gallery--gridtiny {
	display: grid;
	grid-template-columns: repeat(10,1fr);
	width: 300%;
	padding: 0 2vh;
	height: min-content;
	gap: 1vh;
}

.gallery--switch.gallery--gridtiny {
	width: 100%;
	gap: 2vh;
}

.gallery--gridtiny .gallery__item {
	aspect-ratio: 1;
	width: 100%;
	height: auto;
	filter: contrast(0.8) saturate(0) brightness(0.6) opacity(1);
}

.gallery--switch.gallery--gridtiny .gallery__item {
	filter: contrast(1) saturate(1) brightness(0.8) opacity(0.8);
}

.gallery--gridtiny .caption {
	position: absolute;
	width: 100vw;
	height: 100vh;
	left: 50%;
	top: 50%;
	margin: -50vh 0 0 -50vw;
	display: grid;
	place-items: center;
	font-size: clamp(2rem, 8vw, 4rem);
	opacity: 0;
}

.gallery--switch.gallery--gridtiny .caption {
	opacity: 1;
}

.gallery--switch .gallery__item--center {
	height: 100vh;
	width: 100vw;
	aspect-ratio: auto;
	filter: brightness(0.5);
}

.gallery--bento {
	display: grid;
	gap: 1vh;
	grid-template-columns: repeat(3, 32.5vw);
	grid-template-rows: repeat(4,23vh);
	justify-content: center;
    align-content: center;
}

.gallery--switch.gallery--bento {
	grid-template-columns: repeat(3, 100vw);
	grid-template-rows: repeat(4,49.5vh);
	gap: 15vh;
}

.gallery--bento .gallery__item:nth-child(1) {
	grid-area: 1 / 1 / 3 / 2;
}

.gallery--bento .gallery__item:nth-child(2) {
	grid-area: 1 / 2 / 2 / 3;
}

.gallery--bento .gallery__item:nth-child(3) {
	grid-area: 2 / 2 / 4 / 3;
}

.gallery--bento .gallery__item:nth-child(4) {
	grid-area: 1 / 3 / 3 / 3;
}

.gallery--bento .gallery__item:nth-child(5) {
	grid-area: 3 / 1 / 3 / 2;
}

.gallery--bento .gallery__item:nth-child(6) {
	grid-area: 3 / 3 / 5 / 4;
}

.gallery--bento .gallery__item:nth-child(7) {
	grid-area: 4 / 1 / 5 / 2;
}

.gallery--bento .gallery__item:nth-child(8) {
	grid-area: 4 / 2 / 5 / 3;
}

.gallery--bento .caption {
	position: absolute;
	width: 100vw;
	height: 100vh;
	top: 50%;
	left: 50%;
	margin: 100vh 0 0 -50vw;
	font-size: clamp(2rem,10vw,5rem);
	display: grid;
	place-items: center;
}

.gallery--switch.gallery--bento .caption {
	margin-top: -50vh;
}

.gallery--grid10 {
	display: grid;
	grid-template-columns: repeat(2,1fr);
	gap: 2vw;
}

.gallery--switch.gallery--grid10 {
	grid-template-columns: 1fr 300px 1fr;
	grid-template-rows: 1fr 60vh 1fr;
	grid-gap: 0;
}

.gallery--switch.gallery--grid10 .gallery__item {
	grid-area: 2 / 2 / 3 / 3; 	
}

.gallery--grid10 .caption {
    position: absolute;
	width: 100vw;
	height: 100vh;
	top: 50%;
	left: 50%;
	margin: 100vh 0 0 -50vw;
	display: grid;
	place-items: center;
    font-size: clamp(2rem, 8vw, 6rem);
}

.gallery--switch.gallery--grid10 .caption {
	opacity: 1;
	margin-top: -50vh;
}

@media screen and (min-width: 53em) {
	.frame {
		grid-template-columns: auto;
		grid-template-areas: 'nav';
		align-content: space-between;
		justify-items: start;
		grid-gap: 2rem;
	}
	.frame__demos {
		justify-self: end;
	}
	.project--details {
		grid-template-areas: 'label-default paragraph';
		grid-template-columns: auto auto;
	}
	.project__label {
		text-align: right;
	}
	.gallery--grid10 {
		grid-template-columns: repeat(10,1fr);
		grid-template-rows: repeat(4,1fr);
	}
	.gallery--grid10:not(.gallery--switch) .pos-1 { grid-area: 1 / 1; }
	.gallery--grid10:not(.gallery--switch) .pos-2 { grid-area: 1 / 2; }
	.gallery--grid10:not(.gallery--switch) .pos-3 { grid-area: 1 / 4; }
	.gallery--grid10:not(.gallery--switch) .pos-4 { grid-area: 1 / 5; }
	.gallery--grid10:not(.gallery--switch) .pos-5 { grid-area: 3 / 6; }
	.gallery--grid10:not(.gallery--switch) .pos-6 { grid-area: 1 / 7; }
	.gallery--grid10:not(.gallery--switch) .pos-7 { grid-area: 1 / 9; }
	.gallery--grid10:not(.gallery--switch) .pos-8 { grid-area: 3 / 10; }
	.gallery--grid10:not(.gallery--switch) .pos-9 { grid-area: 2 / 8; }
	.gallery--grid10:not(.gallery--switch) .pos-10 { grid-area: 4 / 9; }
	.gallery--grid10:not(.gallery--switch) .pos-11 { grid-area: 3 / 8; }
	.gallery--grid10:not(.gallery--switch) .pos-12 { grid-area: 2 / 2; }
	.gallery--grid10:not(.gallery--switch) .pos-13 { grid-area: 3 / 1; }
	.gallery--grid10:not(.gallery--switch) .pos-14 { grid-area: 3 / 4; }
	.gallery--grid10:not(.gallery--switch) .pos-15 { grid-area: 4 / 3; }
	.gallery--grid10:not(.gallery--switch) .pos-16 { grid-area: 4 / 7; }

	.gallery--stack .caption {
		bottom: 40%;
		width: 60vw;
		max-width: 800px;
	}

	.gallery--switch.gallery--stack .caption {
		left: 40vw;
	}

}

/* ===================================================================
   Phần thêm cho portfolio Cafard
   =================================================================== */

html {
	scroll-behavior: auto;
}

.frame {
	opacity: 1;
}

.frame__title-main {
	font-weight: 500;
	letter-spacing: 0.01em;
}

.project__name {
	font-weight: 700;
}

.project__title {
	font-family: "Great Vibes", "Montserrat", cursive;
	font-weight: 400;    /* cũ 500 — Great Vibes chỉ có weight 400, để 500 là faux-bold */
	letter-spacing: 0;   /* cũ -0.03em */
}

.project__title-line {
	display: block;
}

/* Khối chi tiết từng dự án */
.project--details {
	grid-template-areas: 'label-default' 'body';
}

.project__body {
	grid-area: body;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	max-width: 420px;
}

.project--details .project__body p {
	max-width: none;
}

.project__heading-title {
	margin: 0;
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.05;
}

.project__meta {
	font-weight: 300;  /* light */
	font-size: 0.8rem;
	color: var(--color-label);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* Link xem video gốc */
.project__link {
	align-self: flex-start;
	margin-top: 0.4rem;
	font-size: 0.85rem;
	color: var(--color-text);
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

/* Mục lục dự án */
.work-index {
	grid-area: body;
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: min(560px, 100%);
}

.work-index a {
	display: grid;
	grid-template-columns: 2.5rem 1fr auto;
	gap: 1rem;
	padding: 0.7rem 0;
	border-top: 1px solid #2a2b30;
	color: var(--color-text);
	transition: color 0.2s, padding 0.3s;
}

.work-index li:last-child a {
	border-bottom: 1px solid #2a2b30;
}

.work-index a:hover {
	color: var(--color-link);
	padding-left: 0.5rem;
}

.work-index__num,
.work-index__kind {
	font-weight: 300;  /* light */
	color: var(--color-label);
	font-size: 0.8rem;
	align-self: center;
}

/* moc cho js/tvvor.js (block xoáy của Thor) — rỗng, không chiếm chỗ */
.tv-anchor { display: block; height: 0; margin: 0; padding: 0; overflow: hidden; }

/* Liên hệ — footer tối giản: nền đen, text canh giữa, mèo trắng thò đầu từ đáy */
.project--contact {
	position: relative;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: #000;
	overflow: hidden;
	height: 100vh;
	height: 100svh;
}

.foot {
	position: relative;
	width: 100%;
	min-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 1.2rem clamp(190px, 44vh, 420px);
}

.foot__lines {
	position: relative;
	z-index: 2;
	display: grid;
	justify-items: center;
	gap: clamp(.7rem, 1.6vh, 1.1rem);
	text-align: center;
}

.foot__line {
	margin: 0;
	font-size: clamp(.85rem, 1vw, .98rem);
	letter-spacing: .01em;
	font-weight: 400;
	color: #fff;
	line-height: 1.6;
}

.foot__line a { color: #fff; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.foot__line a:hover { border-color: rgba(255, 255, 255, .55); }

.foot__line--link { border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 2px; }

.foot__line--icon {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	flex-wrap: wrap;
	justify-content: center;
}

.foot__line--icon svg { width: 17px; height: 17px; }
.foot__line--icon a { display: inline-flex; align-items: center; }
.foot__line--icon a:hover svg { transform: scale(1.08); }
.foot__line--icon svg { color: #fff; transition: transform .25s ease; }

.foot__art {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: min(880px, 94vw);
	pointer-events: none;
	z-index: 1;
}

.foot__cat { display: block; width: 100%; height: auto; }

.foot__credit {
	position: absolute;
	right: 1.1rem;
	bottom: .8rem;
	margin: 0;
	font-size: .62rem;
	letter-spacing: .06em;
	font-weight: 300;
	color: rgba(255, 255, 255, .22);
	z-index: 2;
}

@media (max-width: 45em) {
	.foot { min-height: 100%; padding-bottom: 46vh; }
	.foot__art { width: min(520px, 108vw); }
	.foot__credit { right: 50%; transform: translateX(50%); }
}

@media screen and (min-width: 53em) {
	/* Desktop: nav cố định, hoà màu để đọc được trên cả nền ảnh lẫn nền tối */
	.frame {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 200;
		mix-blend-mode: difference;
	}
	.project--details {
		grid-template-areas: 'label-default body';
	}
	.project--intro {
		margin-top: 8rem;      /* cũ: 20vh (thừa hưởng từ .project) */
	}
	.project__title {
		margin: 10vh 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.work-index a {
		transition: none;
	}
}
/* ---------------------------------------------------------------------
   Frames doc: intro / Selected work / AI video (moi frame 1 man hinh)
   ------------------------------------------------------------------- */
.frames { display: block; }
.frames > .project {
	max-width: 1000px;
	margin: 0 auto;
	min-height: 100svh;
	height: auto;
	padding: 1rem;
	align-content: center;
	scroll-snap-align: start;
}
.frames > .project--intro { margin: 0 auto; }
.frames > .project--ai {
	max-width: none;
	padding: 0;
	display: flex;
	align-items: center;
}
.frames .project__title { margin: 4vh 0; }

.project--index {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2.2rem;
}
.frame-title {
	font-size: clamp(1.8rem, 4.4vw, 3.2rem);
	font-weight: 900;
	letter-spacing: -.02em;
	line-height: 1.05;
	margin: 0;
	text-align: center;
}
.project--index .work-index {
	width: min(100%, 760px);
	min-width: 0;
}
.frames > .project--ai .ai-arc { flex: 1; }

/* ---------------------------------------------------------------------
   01 / AI video: arc carousel full-bleed (ref Gather)
   ------------------------------------------------------------------- */
.project--ai {
	display: block;
	position: relative;
}
.ai-arc {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	/* ponytail: height auto de khoi noi dung tu can giua frame, khong bi cat khi man thap */
	height: auto;
	overflow: hidden;
	padding: var(--arc-top) 0 4vh;
	--arc-top: 172px;
}
.ai-stage { position: absolute; inset: 0; }
.ai-card {
	position: absolute;
	left: 50%;
	top: var(--arc-top);
	padding: 0;
	border: 0;
	border-radius: 16px;
	overflow: hidden;
	background: #111;
	cursor: pointer;
	box-shadow: 0 24px 50px -24px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.06);
	/* transform + opacity do JS ve tung frame (vi tri thuc, keo theo tay) -> KHONG transition 2 thu do */
	transition: width .45s cubic-bezier(.22,.61,.36,1), height .45s cubic-bezier(.22,.61,.36,1),
	            scale .25s ease, filter .25s ease;
	will-change: transform;
}
/* keo/vuot: ngang = xoay vong, doc = cuon trang */
.ai-arc { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ai-arc .ai-stage { cursor: grab; }
.ai-arc.is-dragging .ai-stage, .ai-arc.is-dragging .ai-card { cursor: grabbing; }
.ai-card__art { -webkit-user-drag: none; pointer-events: none; }
/* card phu: tro vao thi nho len + sang (bao hieu 'bam de dua vao giua') */
.ai-card:not(.is-main):hover, .ai-card:not(.is-main):focus-visible { scale: 1.12; filter: brightness(1.15); }
.ai-arc.is-dragging .ai-card:hover { scale: 1; }
.ai-card:focus-visible { outline: 2px solid #c6ac8f; outline-offset: 3px; }

/* nut qua lai + so thu tu, ngay duoi card giua */
.ai-nav {
	position: absolute;
	left: 50%;
	top: calc(var(--arc-top) + min(13vw, 190px) * 16 / 18 + 22px);
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 14px;
	z-index: 30;
}
.ai-nav__btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.28);
	background: rgba(255,255,255,.04);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	padding: 0 0 3px;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease;
}
.ai-nav__btn:hover { background: rgba(198,172,143,.18); border-color: #c6ac8f; }
.ai-nav__btn:focus-visible { outline: 2px solid #c6ac8f; outline-offset: 2px; }
.ai-nav__count {
	min-width: 4.6em;
	text-align: center;
	font-size: .78rem;
	letter-spacing: .14em;
	color: rgba(255,255,255,.7);
	font-variant-numeric: tabular-nums;
}
.ai-card.is-main {
	width: min(13vw, 190px);
	height: calc(min(13vw, 190px) * 16 / 9);
	border-radius: 16px;
}
.ai-card:not(.is-main) { width: 104px; height: 104px; }
.ai-card__art {
	display: block;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: 50% 45%;
}
.ai-card__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 42px;
	height: 42px;
	margin: -21px 0 0 -21px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.75);
	background: rgba(0,0,0,.38);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity .3s ease;
	pointer-events: none;
}
.ai-card__play::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -8px 0 0 -5px;
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent #fff;
}
.ai-card.is-main .ai-card__play { opacity: 1; }
.ai-card:hover .ai-card__play { opacity: 1; }

.ai-copy {
	position: relative;
	left: auto;
	top: auto;
	transform: none;
	margin: 0 auto;
	padding-top: 170px;
	width: min(46ch, 520px);
	text-align: center;
}
.ai-copy__title {
	font-size: clamp(1.6rem, 3.2vw, 2.4rem);
	font-weight: 900;
	letter-spacing: -.02em;
	line-height: 1.1;
	margin: .3rem 0 .9rem;
}
.ai-copy p { font-size: .95rem; line-height: 1.5; }

@media (max-width: 53em) {
	.frames > .project { padding: 1rem; }
	.ai-arc { height: 460px; --arc-top: 100px; }
	.ai-card.is-main { width: min(40vw, 168px); height: calc(min(40vw, 168px) * 16 / 9); }
	.ai-card:not(.is-main) { width: 62px; height: 62px; }
	.ai-copy { top: calc(var(--arc-top) + 165px); width: 84vw; }
	.ai-nav { top: calc(var(--arc-top) + min(40vw, 168px) * 16 / 18 + 16px); }
	.ai-modal__grid { flex-direction: column; }
	.ai-modal__wf { width: 100%; height: auto; }
}

.ai-modal {
	width: min(1180px, 92vw);
	max-height: 92vh;
	padding: 2.2rem clamp(3.4rem, 4.2vw, 4.8rem);   /* gutter 2 ben cho mui ten */
	border: 0;
	border-radius: 14px;
	background: #0b0b0b;
	color: #fff;
	overflow-y: auto;
	overflow-x: hidden;
	font-size: 1rem;
	line-height: 1.5;
}
.ai-modal::backdrop { background: rgba(0,0,0,.86); backdrop-filter: blur(6px); }
.ai-modal__x {
	position: absolute;
	top: .9rem;
	right: 1.1rem;
	border: 0;
	background: none;
	color: #fff;
	font-size: 1.9rem;
	line-height: 1;
	cursor: pointer;
	opacity: .55;
}
.ai-modal__x:hover { opacity: 1; }
.ai-modal__head { margin-bottom: 1.1rem; }
.ai-modal__title {
	margin: 0 0 .35rem;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	font-weight: 900;
	letter-spacing: -.02em;
	line-height: 1.1;
}
.ai-modal__meta {
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: 0;
}
.ai-modal__grid {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	min-height: min(74vh, 660px);
}
.ai-modal__wf {
	height: min(40vh, 360px);
	aspect-ratio: 1829 / 829;
	background-size: cover;
	background-position: 50% 50%;
	border-radius: 8px;
	box-shadow: 0 0 0 1px rgba(255,255,255,.10);
	display: grid;
	place-items: center;
}
.ai-modal { --ar: 9 / 16; }   /* ponytail: ti le that cua clip, JS set tu videoWidth/videoHeight */
.ai-modal__clip { height: min(74vh, 660px); aspect-ratio: var(--ar); max-width: 100%; }
.ai-modal__clip video {
	width: 100%;
	height: 100%;
	object-fit: contain;      /* khong crop nua */
	border-radius: 8px;
	display: block;
}
/* video ngang: xep doc, text gian het chieu ngang */
.ai-modal.is-land .ai-modal__grid { flex-direction: column; align-items: stretch; min-height: 0; gap: 1.4rem; }
.ai-modal.is-land .ai-modal__clip { height: auto; width: 100%; }
.ai-modal.is-land .ai-modal__clip video { width: 100%; height: auto; max-height: 58vh; }
.ai-modal.is-land .ai-modal__text { max-width: none; }
/* mui ten carousel */
.ai-modal__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 46px;
	height: 46px;
	margin-top: -23px;
	border: 0;
	border-radius: 50%;
	background: rgba(0,0,0,.45);
	color: #fff;
	font-size: 1.9rem;
	line-height: 1;
	cursor: pointer;
	opacity: .7;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.ai-modal__nav:hover { opacity: 1; background: rgba(255,255,255,.18); }
.ai-modal__nav--prev { left: .55rem; }
.ai-modal__nav--next { right: .55rem; }
/* video ngang: mui ten xuong duoi khung cho khong de len video */
.ai-modal.is-land { padding-bottom: 4.8rem; }
.ai-modal.is-land .ai-modal__nav { top: auto; bottom: 1rem; margin-top: 0; }
.ai-modal__note { font-size: .8rem; opacity: .5; }
.ai-modal__tool {
	display: block;
	margin-top: .2rem;
	font-size: .95rem;
	font-weight: 300;
	letter-spacing: 0;
	opacity: .75;
}
.ai-modal__text {
	flex: 1 1 auto;
	max-width: 46ch;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.ai-modal__text[hidden], .ai-modal__wf[hidden] { display: none; }
.ai-modal__steps[hidden], .ai-modal__lede[hidden] { display: none; }
.ai-modal__lede {
	margin: 0 0 1.1rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--color-text-soft);
}
.ai-modal__steps {
	margin: 0;
	padding-left: 0;
	list-style: none;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--color-text-soft);
	display: flex;
	flex-direction: column;
	gap: .7rem;
}
.ai-modal__steps li { position: relative; padding-left: 1.3rem; }
.ai-modal__steps li::before {
	content: counter(step) '.';
	counter-increment: step;
	position: absolute;
	left: 0;
	opacity: .55;
}
.ai-modal__steps { counter-reset: step; }

/* Modal có ảnh workflow: title/text trên, workflow dưới-trái, clip phải */
@media (min-width: 1000px) {
	.ai-modal__grid:has(.ai-modal__wf:not([hidden])) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "text clip" "wf clip";
		align-items: start;
		column-gap: 2rem;
		row-gap: 1.4rem;
	}
	.ai-modal__grid:has(.ai-modal__wf:not([hidden])) .ai-modal__text { grid-area: text; max-width: none; }
	.ai-modal__grid:has(.ai-modal__wf:not([hidden])) .ai-modal__wf { grid-area: wf; width: 100%; height: auto; aspect-ratio: auto; background: none; }
	.ai-modal__grid:has(.ai-modal__wf:not([hidden])) .ai-modal__clip { grid-area: clip; align-self: center; height: min(58vh, 520px); }
}
.ai-modal__wf img { width: 100%; height: auto; display: block; border-radius: 8px; }

/* modal tren mobile: title + gioi thieu canh giua, video xuong duoi */
@media (max-width: 53em) {
	.ai-modal {
		width: 94vw;
		max-height: 92svh;
		padding: 1.4rem 1.2rem 1.8rem;
	}
	.ai-modal__grid {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		gap: 1.5rem;
	}
	.ai-modal__text { max-width: none; text-align: center; align-items: center; }
	.ai-modal__steps { align-self: stretch; text-align: left; }
	.ai-modal__wf { width: 100%; height: auto; }
	.ai-modal__clip { width: auto; height: auto; max-height: 58svh; aspect-ratio: 9 / 16; margin: 0 auto; }
}

/* ---- 02 / TVC: bento zoom theo scroll, khung giữa là clip, tới 16:9 thì đứng lại thành popup ---- */
.frames > .project--tvc { max-width: none; padding: 0; margin: 0; display: block; }

.project--tvc {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
	display: block;
	height: 100svh;
	overflow: hidden;
	background: var(--color-bg);
}

.tvc__pin {
	position: relative;
	height: 100svh;
	display: grid;
	place-items: center;
	overflow: hidden;
}

.tvc__scrim {
	position: absolute;
	inset: 0;
	background: var(--color-bg);
	opacity: 0;
	transition: opacity .45s ease;
	z-index: 0;
}

.project--tvc.is-open .tvc__scrim { opacity: .94; pointer-events: auto; }

.tvc__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: .72fr 1fr 1.7fr 1fr .72fr;
	grid-template-rows: repeat(3, auto);
	gap: clamp(6px, .7vw, 12px);
	width: min(1500px, 94vw);
	transform-origin: 50% 50%;
	will-change: transform;
}

.tvc__cell {
	aspect-ratio: 4 / 3;
	border-radius: 6px;
	background-size: cover;
	background-position: center;
}

/* ponytail: 12 o — 6 o cot giua (2 & 4) + 3 o moi mep ngoai (cot 1 & 5) lap kin 4 goc + 2 mep giua */
.tvc__cell--1 { grid-column: 2; grid-row: 1; }
.tvc__cell--2 { grid-column: 4; grid-row: 1; }
.tvc__cell--3 { grid-column: 2; grid-row: 2; }
.tvc__cell--4 { grid-column: 4; grid-row: 2; }
.tvc__cell--5 { grid-column: 2; grid-row: 3; }
.tvc__cell--6 { grid-column: 4; grid-row: 3; }
.tvc__cell--7 { grid-column: 1; grid-row: 1; }
.tvc__cell--8 { grid-column: 1; grid-row: 2; }
.tvc__cell--9 { grid-column: 1; grid-row: 3; }
.tvc__cell--10 { grid-column: 5; grid-row: 1; }
.tvc__cell--11 { grid-column: 5; grid-row: 2; }
.tvc__cell--12 { grid-column: 5; grid-row: 3; }

.tvc__mid {
	grid-column: 3;
	grid-row: 1 / span 3;
	align-self: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(.6rem, 1.4vh, 1.1rem);
	text-align: center;
	pointer-events: none;
}

.tvc__title { margin: 0; }

.tvc__intro { margin: 0; width: 100%; font-size: .95rem; line-height: 1.5; }

.tvc__frame {
	pointer-events: auto;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

.tvc__frame video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}


.tvc__close {
	position: absolute;
	top: clamp(1rem, 3vh, 2rem);
	right: clamp(1rem, 3vw, 2.4rem);
	z-index: 3;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .35);
	background: rgba(0, 0, 0, .35);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease, background .2s ease;
	backdrop-filter: blur(6px);
}

.project--tvc.is-open .tvc__close { opacity: 1; pointer-events: auto; }
.tvc__close:hover { background: rgba(255, 255, 255, .16); }

@media (max-width: 53em) {
	.tvc__grid { grid-template-columns: 1fr 1.35fr 1fr; width: 88vw; }
	/* ponytail: mobile chi giu 6 o trong, an 6 o mep ngoai */
	.tvc__cell--7, .tvc__cell--8, .tvc__cell--9,
	.tvc__cell--10, .tvc__cell--11, .tvc__cell--12 { display: none; }
	.tvc__cell--1, .tvc__cell--3, .tvc__cell--5 { grid-column: 1; }
	.tvc__cell--2, .tvc__cell--4, .tvc__cell--6 { grid-column: 3; }
	.tvc__mid { grid-column: 2; }
	.tvc__title { font-size: clamp(.95rem, 4vw, 1.4rem); }
	.tvc__intro { font-size: .72rem; line-height: 1.45; }
}

/* ---- 03 / TV Shows: tuong man hinh cong that (hinh tru) ---- */
.project--tvwall {
	position: relative;
	width: 100%;
	max-width: none;
	height: 100svh;
	min-height: 640px;
	margin: 0;
	padding: 0;
	display: block;
	overflow: hidden;
	background: #050507;
}

.tvwall-stage {
	position: absolute;
	inset: 0;
	overflow: hidden;
	perspective: 1400px;
	perspective-origin: 50% 42%;
	background:
		radial-gradient(62% 34% at 50% 46%, rgba(120,132,200,.13), transparent 72%),
		#050507;
}

/* ---- trần: dải mỏng, giàn đèn + chùm sáng ---- */
.tvwall-ceiling {
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 8%;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(#050508, #0a0a12 70%, rgba(10,10,18,0));
}

.tvwall-ceiling::before {
	content: '';
	position: absolute;
	left: 0; right: 0; top: 24%;
	height: 18px;
	opacity: .45;
	background:
		repeating-linear-gradient(62deg, rgba(255,255,255,.12) 0 1px, transparent 1px 12px),
		repeating-linear-gradient(-62deg, rgba(255,255,255,.12) 0 1px, transparent 1px 12px),
		linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)) 0 0 / 100% 1px no-repeat,
		linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)) 0 100% / 100% 1px no-repeat;
}

.tvwall-ceiling::after {
	content: '';
	position: absolute;
	left: 0; right: 0; top: 40%;
	height: 240px;
	background:
		conic-gradient(from 186deg at 14% 0, transparent 0 1.6deg, rgba(255,238,206,.10) 1.6deg 3.4deg, transparent 3.4deg 360deg),
		conic-gradient(from 175deg at 38% 0, transparent 0 1.6deg, rgba(255,238,206,.09) 1.6deg 3.4deg, transparent 3.4deg 360deg),
		conic-gradient(from 177deg at 62% 0, transparent 0 1.6deg, rgba(255,238,206,.09) 1.6deg 3.4deg, transparent 3.4deg 360deg),
		conic-gradient(from 170deg at 86% 0, transparent 0 1.6deg, rgba(255,238,206,.10) 1.6deg 3.4deg, transparent 3.4deg 360deg);
}

/* ---- vòng cung màn hình (hình trụ thật) ---- */
.tvwall-ring {
	position: absolute;
	inset: 0;
	z-index: 2;
	transform-style: preserve-3d;
	transform: translateZ(calc(-1 * var(--r, 1200px))) rotateX(2deg) scale(1.07);
}

.tvwall__screen {
	position: absolute;
	left: 50%;
	top: 46%;
	width: var(--w, 280px);
	height: var(--h, 158px);
	margin: calc(var(--h, 158px) / -2) 0 0 calc(var(--w, 280px) / -2);
	padding: 0;
	border: 0;
	border-radius: 2px;
	overflow: hidden;
	cursor: pointer;
	background: #08080a 50% 50% / cover no-repeat;
	box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 18px 40px -22px #000;
	transform:
		translateY(calc(var(--row, 0) * var(--rowh, 160px)))
		rotateY(calc(var(--col, 0) * var(--step, 12deg)))
		translateZ(var(--r, 1200px))
		scale(var(--sc, 1));
	transform-origin: 50% 50%;
	transition: filter .3s ease, box-shadow .3s ease, transform .3s ease;
	-webkit-box-reflect: below 2px linear-gradient(transparent 60%, rgba(255,255,255,.18));
}

.tvwall__screen video,
.tvwall__screen img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tvwall__tag {
	position: absolute;
	left: 6px;
	bottom: 5px;
	padding: .28em .5em;
	border-radius: 2px;
	background: rgba(0,0,0,.55);
	color: #fff;
	font-size: 10px;
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
	opacity: 0;
	transition: opacity .25s ease;
}

.tvwall-ring:hover .tvwall__screen:not(:hover) { filter: brightness(.5) saturate(.9); }

.tvwall__screen:hover,
.tvwall__screen:focus-visible {
	--sc: 1.06;
	filter: brightness(1.15);
	box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 26px 60px -22px #000;
	outline: none;
}

.tvwall__screen:hover .tvwall__tag,
.tvwall__screen:focus-visible .tvwall__tag { opacity: 1; }

/* ---- sàn bóng ---- */
.tvwall-floor {
	position: absolute;
	left: -6%; right: -6%; bottom: 0;
	height: 22%;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(85% 130% at 50% 0%, rgba(110,124,190,.14), transparent 62%),
		repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 6%),
		linear-gradient(#0a0a11, #06060a 55%, #030304);
	-webkit-mask-image: linear-gradient(transparent, #000 26%);
	mask-image: linear-gradient(transparent, #000 26%);
}

/* ---- chữ 3D dựng trên sàn ---- */
.tvwall-caption::before {
	content: '';
	position: absolute;
	inset: -20% -24% -26% -28%;
	z-index: -1;
	background: radial-gradient(62% 64% at 38% 62%, rgba(4,4,6,.94), rgba(4,4,6,.55) 55%, transparent 78%);
	pointer-events: none;
}

.tvwall-caption {
	position: absolute;
	left: 5vw;
	bottom: clamp(1rem, 3svh, 2.4rem);
	z-index: 4;
	max-width: min(32ch, 32vw);
	transform: perspective(1000px) rotateX(9deg);
	transform-origin: 50% 100%;
	-webkit-box-reflect: below -10px linear-gradient(transparent 62%, rgba(255,255,255,.14));
}

.tvwall__kicker {
	display: block;
	margin-bottom: .5rem;
	font-size: clamp(.5rem, .6vw, .62rem);
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #94949f;
}

.tvwall__title {
	margin: 0;
	font-weight: 600;
	font-size: clamp(1.6rem, 4vw, 3.4rem);
	line-height: .9;
	letter-spacing: -.02em;
	color: #f5f5f7;
	text-shadow:
		0 1px 0 #d6d6df, 0 2px 0 #c4c4ce, 0 3px 0 #b2b2bc, 0 4px 0 #9f9fa9,
		0 5px 0 #8d8d97, 0 6px 0 #7c7c86, 0 7px 0 #6b6b74,
		0 9px 12px rgba(0,0,0,.85), 0 22px 46px rgba(0,0,0,.75);
}

.tvwall__lede {
	margin: .7rem 0 0;
	max-width: 32ch;
	font-size: clamp(.66rem, .85vw, .82rem);
	line-height: 1.5;
	color: #b6b6c1;
}

.tvwall__link {
	display: inline-block;
	margin-top: .7rem;
	font-size: .68rem;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: #e6e6ee;
	border-bottom: 1px solid rgba(255,255,255,.35);
	padding-bottom: 2px;
}

/* ---- popup ---- */
.tv-modal {
	position: fixed;
	width: min(94vw, 1000px);
	max-height: 94vh;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #0a0a0b;
	color: #fff;
	overflow: hidden;
	box-shadow: 0 40px 120px -40px #000;
}

.tv-modal::backdrop {
	background: rgba(0,0,0,.92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.tv-modal__media { display: grid; place-items: center; background: #000; }

.tv-modal__media img,
.tv-modal__media video { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: contain; }

.tv-modal__bar {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: .85rem 1.1rem;
	font-size: .72rem;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.tv-modal__meta { color: var(--color-text-alt, #8b8b95); }

.tv-modal__x {
	position: absolute;
	top: .5rem;
	right: .7rem;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(0,0,0,.45);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	opacity: .7;
}

.tv-modal__x:hover { opacity: 1; background: rgba(255,255,255,.16); }

/* màn hẹp: thu về lưới tĩnh cho khỏi vỡ hình học */
@media (max-width: 55em), (max-height: 620px) {
	.project--tvwall { height: auto; min-height: 0; padding: 4rem 0 2.5rem; }
	.tvwall-stage { position: static; inset: auto; perspective: none; overflow: visible; }
	.tvwall-ceiling, .tvwall-floor { display: none; }
	.tvwall-ring {
		position: static;
		transform: none;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 6px;
		margin: 0 4vw;
	}
	.tvwall__screen {
		position: relative;
		left: auto; top: auto;
		margin: 0;
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
		transform: none;
		-webkit-box-reflect: none;
	}
	.tvwall__tag { opacity: 1; }
	.tvwall-caption { position: static; max-width: none; margin: 1.4rem 4vw 0; transform: none; -webkit-box-reflect: none; }
	.tvwall-caption::before { display: none; }
	.tv-modal { width: 96vw; }
}

@media (max-width: 30em) {
	.tvwall-ring { grid-template-columns: repeat(2, 1fr); }
}

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

/* ---- 03b / TV Shows — fan option ---- */
.project--tvfan {
	position: relative;
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
	padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem);
	background: #08080a;
}

.tvfan-frame {
	position: relative;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-radius: 6px;
	overflow: hidden;
	background: radial-gradient(120% 120% at 22% 40%, #17161a 0%, #0b0b0d 55%, #060607 100%);
}

.tvfan-box {
	position: relative;
	overflow: hidden;
	-webkit-mask-image: radial-gradient(ellipse 80% 84% at 50% 52%, #000 50%, rgba(0, 0, 0, .6) 76%, transparent 93%);
	mask-image: radial-gradient(ellipse 80% 84% at 50% 52%, #000 50%, rgba(0, 0, 0, .6) 76%, transparent 93%);
}

.tvfan-fan { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 45%; }

.tvfan-strip {
	position: absolute;
	display: flex;
	background: #0f0f11;
	padding: 7% 0;
	border-radius: 2px;
	box-shadow: 0 12px 26px rgba(0, 0, 0, .55);
	transform-style: preserve-3d;
}

.tvfan-strip::before,
.tvfan-strip::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 11%;
	background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 3px, transparent 3px 9px);
}
.tvfan-strip::before { top: 3%; }
.tvfan-strip::after { bottom: 3%; }

.tvfan-strip--refl { opacity: .17; filter: blur(1.2px); pointer-events: none; }

.tvfan-card {
	position: relative;
	overflow: hidden;
	flex: 0 0 auto;
	cursor: pointer;
	filter: brightness(.6) saturate(.85);
	transition: filter .35s ease;
}

.tvfan-card video,
.tvfan-card img { display: block; width: 100%; height: 100%; object-fit: cover; }

.tvfan-card.is-on { filter: brightness(1) saturate(1); z-index: 2; }
.tvfan-card.is-on::after {
	content: '';
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75);
}

.tvfan-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 clamp(1rem, 3.4vw, 3rem);
}

.tvfan__kicker {
	font-size: .72rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	font-weight: 300;
	opacity: .55;
}

.tvfan__type {
	margin-top: 1.5rem;
	font-size: .78rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 600;
	color: #cfc7bb;
}

.tvfan__show {
	margin: .35rem 0 .7rem;
	font-size: clamp(1.5rem, 2.5vw, 2.3rem);
	font-weight: 900;
	letter-spacing: -.02em;
	line-height: 1.06;
}

.tvfan__ep { margin: 0 0 1.5rem; font-size: .95rem; font-weight: 300; color: #b9b4ad; }

.tvfan__link {
	align-self: flex-start;
	font-size: .82rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-weight: 600;
	color: #e9e6e1;
	text-decoration: none;
	border-bottom: 1px solid rgba(233, 230, 225, .5);
	padding-bottom: 3px;
}
.tvfan__link:hover { border-color: #e9e6e1; }

@media (max-width: 45em) {
	.tvfan-frame { aspect-ratio: auto; height: auto; grid-template-columns: 1fr; }
	.tvfan-copy { order: 1; padding: 2rem 1.25rem 1.5rem; min-height: 15rem; }
	.tvfan-box { order: 2; width: 100%; height: 96vw; }
	.tvfan__show { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
	.tvfan-card { transition: none; }
}

/* ---------------------------------------------------------------------
   02 / Selected work: danh sach link (C bo 2 dai clip 11/11/2026 — cho idea khac)
   Cot grid: so | ten (max-content, khong xuong hang) | mo ta day ve mep phai
   ------------------------------------------------------------------- */
.work-ring {
	position: relative;
	width: 100%;
	margin: 0.5rem auto 0;
	display: grid;
	place-items: center;
}

.work-ring .work-index {
	grid-area: auto;                 /* base.css gan grid-area:body -> trong grid nay se lech goc */
	width: min(100%, 640px);
	margin: 0;
}

.work-ring .work-index a { grid-template-columns: 2.5rem max-content 1fr; }

.work-ring .work-index__title { white-space: nowrap; }

.work-ring .work-index__kind {
	text-align: right;
	justify-self: end;
}

@media (max-width: 45em) {
	.work-ring .work-index { width: 100%; }
	.work-ring .work-index a { grid-template-columns: 2rem 1fr; }
	.work-ring .work-index__kind { display: none; }
}
}


