.halation-works {
	--primary: var(--e-global-color-primary, #ECDECB);
	--text: var(--e-global-color-text, #BEAF96);
	--glow: rgba(240, 203, 203, 0.8);
	--line: rgba(190, 175, 150, 0.35);
	--font: inherit;
	position: relative;
	width: 100%;
	color: var(--text);
	font-family: inherit;
	line-height: 1.5;
}

.halation-works a {
	color: var(--text);
	text-decoration: none;
	transition: color 0.3s;
}

.halation-works .halation-works__placeholder {
	min-height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	border: 1px dashed var(--line);
	border-radius: 12px;
	color: var(--text);
	text-align: center;
}

.halation-works a:hover {
	color: #fff;
}

.halation-works .play-icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex: none;
}

/* ---------- 1. Grid (Instagram) ---------- */
.halation-works .ig-grid {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.halation-works .ig-tile {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 24px;
	display: block;
	background: #000 center / cover no-repeat;
	transition: box-shadow 0.3s ease, z-index 0s;
}

.halation-works .ig-tile__img {
	position: absolute;
	inset: 0;
	background: inherit;
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.halation-works .ig-tile__over {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: rgba(0, 0, 0, 0.55);
	color: var(--primary);
	opacity: 0;
	transition: opacity 0.35s;
	font-family: "Kaisei HarunoUmi", sans-serif;
	font-weight: 700;
	font-size: clamp(14px, 1.4vw, 20px);
	text-shadow: 0 0 14px var(--glow);
	text-align: center;
	padding: 12px;
}

.halation-works .ig-tile__over .play-icon {
	width: 36px;
	height: 36px;
}

.halation-works .ig-tile__video {
	position: absolute;
	inset: 0;
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

.halation-works .ig-tile__video.is-on {
	opacity: 1;
}

.halation-works .ig-tile__video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.halation-works .ig-tile:hover .ig-tile__img,
.halation-works .ig-tile:focus-visible .ig-tile__img {
	transform: scale(1.06);
}

.halation-works .ig-tile:hover .ig-tile__over,
.halation-works .ig-tile:focus-visible .ig-tile__over {
	opacity: 1;
}

.halation-works .ig-tile:hover,
.halation-works .ig-tile:focus-visible {
	box-shadow: 0 0 32px 0 #fff;
	z-index: 2;
}

.halation-works .ig-tile:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: -2px;
}

/* ---------- 2. Mosaic ---------- */
.halation-works .mosaic {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: clamp(130px, 15vw, 240px);
	grid-auto-flow: dense;
	gap: 12px;
}

.halation-works .mosaic__tile {
	position: relative;
	overflow: hidden;
	border-radius: 18px;
	display: block;
	background: #000;
	isolation: isolate;
}

.halation-works .mosaic__tile--big {
	grid-column: span 2;
	grid-row: span 2;
}

.halation-works .mosaic__tile--wide {
	grid-column: span 2;
}

.halation-works .mosaic__tile--tall {
	grid-row: span 2;
}

.halation-works .mosaic__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	background: #000 center / cover no-repeat;
	transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.halation-works .mosaic__video {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

.halation-works .mosaic__video.is-on {
	opacity: 1;
}

.halation-works .mosaic__video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.halation-works .mosaic__tile::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 55%);
	opacity: 0;
	transition: opacity 0.35s;
}

.halation-works .mosaic__tile::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	border: 2px solid transparent;
	transition: border-color 0.35s, box-shadow 0.35s;
}

.halation-works .mosaic__cap {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 16px;
	display: flex;
	align-items: baseline;
	gap: 10px;
	color: var(--primary);
	font-weight: 700;
	font-size: clamp(14px, 1.2vw, 18px);
	line-height: 1.2;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.35s, transform 0.35s;
}

.halation-works .mosaic__tile--big .mosaic__cap {
	font-size: clamp(20px, 2vw, 30px);
	left: 26px;
	bottom: 24px;
	text-shadow: 0 0 14px var(--glow);
}

.halation-works .mosaic__tile--big::before,
.halation-works .mosaic__tile--big .mosaic__cap {
	opacity: 1;
	transform: none;
}

.halation-works .mosaic__tile:hover .mosaic__img,
.halation-works .mosaic__tile:focus-visible .mosaic__img {
	transform: scale(1.06);
}

.halation-works .mosaic__tile:hover::before,
.halation-works .mosaic__tile:focus-visible::before {
	opacity: 1;
}

.halation-works .mosaic__tile:hover .mosaic__cap,
.halation-works .mosaic__tile:focus-visible .mosaic__cap {
	opacity: 1;
	transform: none;
}

.halation-works .mosaic__tile:hover::after,
.halation-works .mosaic__tile:focus-visible::after {
	border-color: var(--text);
	box-shadow: inset 0 0 40px rgba(240, 203, 203, 0.25);
}

.halation-works .mosaic__tile:focus-visible {
	outline: none;
}

/* ---------- 3. Reels ---------- */
.halation-works .reels-wrap {
	position: relative;
	max-width: 1368px;
	margin: 0 auto;
}

.halation-works .reels {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 20px 20px 30px;
	scrollbar-width: none;
}

.halation-works .reels::-webkit-scrollbar {
	display: none;
}

.halation-works .reel {
	position: relative;
	flex: none;
	width: clamp(220px, 22vw, 300px);
	aspect-ratio: 9 / 16;
	scroll-snap-align: center;
	border-radius: 24px;
	overflow: hidden;
	isolation: isolate;
	border: 2px solid var(--text);
	background: #000 center / cover no-repeat;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	transition: box-shadow 0.3s, transform 0.3s;
}

.halation-works .reel::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 55%);
}

.halation-works .reel__video {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

.halation-works .reel__video.is-on {
	opacity: 1;
}

.halation-works .reel__video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.halation-works .reel__meta {
	padding: 20px;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.halation-works .reel__title {
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
}

.halation-works .reel__play {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--primary);
	color: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.halation-works .reel:hover,
.halation-works .reel:focus-visible {
	box-shadow: 0 0 50px 0 #fff;
	outline: none;
	transform: translateY(-6px);
}

.halation-works .reels-nav {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 4px;
}

.halation-works .reels-nav button {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid var(--text);
	background: transparent;
	color: var(--primary);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.3s, color 0.3s;
}

.halation-works .reels-nav button svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.halation-works .reels-nav button:hover {
	background: var(--primary);
	color: #000;
}

/* ---------- 4. Feature ---------- */
.halation-works .feature {
	max-width: 1100px;
	margin: 0 auto;
}

.halation-works .feature__stage {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 24px;
	overflow: hidden;
	border: 2px solid var(--text);
	cursor: pointer;
	background: #000;
}

.halation-works .feature__img {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: #000 center / cover no-repeat;
	opacity: 0;
	transition: opacity 0.8s;
}

.halation-works .feature__img.is-on {
	opacity: 1;
}

.halation-works .feature__video {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.8s;
	pointer-events: none;
}

.halation-works .feature__video.is-on {
	opacity: 1;
}

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

.halation-works .feature__stage::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 50%);
	pointer-events: none;
}

.halation-works .feature__caption {
	position: absolute;
	left: 40px;
	right: 40px;
	bottom: 34px;
	z-index: 3;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
}

.halation-works .feature__title {
	margin: 0;
	font-size: clamp(26px, 3.4vw, 52px);
	line-height: 1.1;
	font-weight: 700;
	color: var(--primary);
	text-shadow: 0 0 14px var(--glow);
}

.halation-works .feature__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: none;
	background: var(--primary);
	color: #000;
	border-radius: 40px;
	padding: 12px 22px;
	font-size: 16px;
	font-weight: 500;
}

.halation-works .feature__stage:hover .feature__btn {
	background: #fff;
}

.halation-works .feature__thumbs {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	margin-top: 16px;
}

.halation-works .thumb {
	aspect-ratio: 16 / 10;
	border-radius: 12px;
	border: 2px solid transparent;
	background: #000 center / cover no-repeat;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.3s, border-color 0.3s;
	padding: 0;
}

.halation-works .thumb:hover {
	opacity: 0.85;
}

.halation-works .thumb.is-on {
	opacity: 1;
	border-color: var(--primary);
	box-shadow: 0 0 18px rgba(240, 203, 203, 0.45);
}

/* ---------- 5. Index ---------- */
.halation-works .index {
	max-width: 1100px;
	margin: 0 auto;
	list-style: none;
	padding: 0;
	border-top: 1px solid var(--line);
}

.halation-works .index__row {
	border-bottom: 1px solid var(--line);
}

.halation-works .index__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 26px 8px;
	color: var(--primary);
	transition: padding 0.4s, color 0.3s;
}

.halation-works .index__title {
	font-size: clamp(28px, 3.6vw, 56px);
	line-height: 1.1;
	font-weight: 700;
}

.halation-works .index__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	letter-spacing: 2px;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity 0.3s;
}

.halation-works .index__thumb {
	display: none;
}

.halation-works .index__link:hover,
.halation-works .index__link:focus-visible {
	padding-left: 24px;
	color: #fff;
	outline: none;
}

.halation-works .index__link:hover .index__title {
	text-shadow: 0 0 14px var(--glow);
}

.halation-works .index__link:hover .index__cta,
.halation-works .index__link:focus-visible .index__cta {
	opacity: 1;
}

.halation-index-preview {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 50;
	pointer-events: none;
	width: 360px;
	aspect-ratio: 16 / 9;
	border-radius: 20px;
	border: 2px solid var(--e-global-color-text, #BEAF96);
	background: #000 center / cover no-repeat;
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.9);
	transition: opacity 0.25s, transform 0.25s;
}

.halation-index-preview.is-on {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.halation-index-preview video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
	display: block;
}

/* ---------- Lightbox ---------- */
.halation-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.87);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.halation-lightbox.is-open {
	display: flex;
}

.halation-lightbox__video {
	position: relative;
	width: 60vw;
	aspect-ratio: 16 / 9;
}

.halation-lightbox__frame {
	width: 100%;
	height: 100%;
	border-radius: 20px;
	overflow: hidden;
	background: #000;
}

.halation-lightbox__frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.halation-lightbox__close {
	position: absolute;
	top: -34px;
	right: -20px;
	width: 35px;
	height: 35px;
	padding: 5px;
	border: 0;
	border-radius: 50px;
	background: #EBDFCA;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.halation-lightbox__close svg {
	width: 100%;
	height: 100%;
	fill: #000;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.halation-works .feature__thumbs {
		grid-template-columns: repeat(3, 1fr);
	}

	.halation-index-preview {
		display: none;
	}

	.halation-works .index__thumb {
		display: block;
		width: 120px;
		aspect-ratio: 16 / 9;
		border-radius: 12px;
		background: #000 center / cover no-repeat;
		flex: none;
	}

	.halation-works .index__cta {
		display: none;
	}

	.halation-lightbox__video {
		width: 90vw;
	}
}

@media (max-width: 767px) {
	.halation-works .ig-grid {
		gap: 20px;
	}

	.halation-works .ig-tile {
		border-radius: 16px;
	}

	.halation-works .mosaic {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 40vw;
		gap: 8px;
	}

	.halation-works .mosaic__tile {
		border-radius: 14px;
	}

	.halation-works .mosaic__cap {
		opacity: 1;
		transform: none;
		left: 12px;
		bottom: 10px;
		font-size: 13px;
	}

	.halation-works .mosaic__tile::before {
		opacity: 1;
	}

	.halation-works .reel {
		width: 70vw;
	}

	.halation-works .feature__caption {
		left: 18px;
		right: 18px;
		bottom: 16px;
	}

	.halation-works .feature__btn {
		padding: 10px 14px;
		font-size: 13px;
	}

	.halation-works .feature__btn span {
		display: none;
	}

	.halation-works .index__link {
		padding: 18px 4px;
	}

	.halation-works .index__thumb {
		width: 88px;
	}

	.halation-lightbox__frame {
		border-radius: 12px;
	}

	.halation-lightbox__close {
		right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.halation-works .ig-tile__img,
	.halation-works .ig-tile__video,
	.halation-works .mosaic__img,
	.halation-works .mosaic__video,
	.halation-works .reel,
	.halation-works .reel__video,
	.halation-works .feature__img,
	.halation-works .feature__video,
	.halation-index-preview {
		transition: none !important;
	}
}
