/* =========================================================
   enhance.css: live HTML overlays on images (not baked in)
   Black / red / white theme, uses template variables.
   ========================================================= */
.ov-host { position: relative; }
.ov-layer { position: absolute; inset: 0; pointer-events: none; z-index: 3; }

/* Floating glass chip */
.ov-chip {
	position: absolute; display: inline-flex; align-items: center; gap: 10px;
	padding: 10px 16px 10px 10px; border-radius: 100px;
	background: rgba(20, 20, 20, .72); color: #fff;
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, .14);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
	font: 600 15px/1.2 var(--accent-font); white-space: nowrap; letter-spacing: -.01em;
	opacity: 0; transform: translateY(18px) scale(.9);
	transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}
.ov-chip.light { background: rgba(255, 255, 255, .92); color: var(--primary-color); border-color: rgba(0,0,0,.06); }
.ov-chip i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-color); color: #fff; font-size: 13px; flex: none; }
.ov-chip small { display: block; font: 500 12px/1.2 var(--default-font); opacity: .7; margin-top: 2px; }
.ov-in .ov-chip { opacity: 1; transform: none; }
.ov-in .ov-chip > span { animation: ov-float 5s ease-in-out infinite; display: block; }
.ov-chip:nth-child(2) > span { animation-delay: -1.6s; }
.ov-chip:nth-child(3) > span { animation-delay: -3.2s; }
@keyframes ov-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
/* whole chip bobs gently too */
.ov-in .ov-chip.bob { animation: ov-bob 6s ease-in-out infinite; }
@keyframes ov-bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Live dot (pulsing) */
.ov-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ov-pulse 2s infinite; flex: none; margin-left: 6px; }
@keyframes ov-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* Word rotator chip */
.ov-rotator { min-width: 210px; }
.ov-rotator > span { display: inline-flex; align-items: center; gap: 6px; }
.ov-rotator .ov-words { position: relative; height: 1.25em; line-height: 1.25em; overflow: hidden; display: inline-block; min-width: 90px; vertical-align: middle; }
.ov-rotator .ov-words b { position: absolute; left: 0; top: 0; font-weight: 700; color: #fff; transform: translateY(110%); transition: transform .55s cubic-bezier(.7,0,.2,1); }
.ov-rotator.light .ov-words b { color: var(--accent-color); }
.ov-rotator .ov-words b.on { transform: translateY(0); }
.ov-rotator .ov-words b.out { transform: translateY(-110%); }

/* Corner tag on cards: slides up from the bottom */
.ov-tag {
	position: absolute; left: 16px; bottom: 16px; z-index: 3; pointer-events: none;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px; border-radius: 100px; background: var(--accent-color); color: #fff;
	font: 600 13px/1 var(--accent-font); letter-spacing: .01em;
	transform: translateY(14px); opacity: 0; transition: all .5s cubic-bezier(.2,.8,.2,1);
}
.ov-in .ov-tag { transform: none; opacity: 1; }
.ov-tag.dark { background: rgba(20,20,20,.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Hover sheen + caption reveal (galleries / projects) */
.ov-cap {
	position: absolute; inset: auto 0 0 0; z-index: 3; pointer-events: none;
	padding: 60px 20px 18px; color: #fff;
	background: linear-gradient(180deg, transparent, rgba(15,15,15,.85));
	font: 600 18px/1.2 var(--accent-font);
	transform: translateY(30%); opacity: 0; transition: all .5s cubic-bezier(.2,.8,.2,1);
}
.ov-cap small { display: block; font: 500 12px var(--default-font); color: var(--accent-color); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.ov-host:hover .ov-cap { transform: none; opacity: 1; }
@media (hover: none) { .ov-in .ov-cap { transform: none; opacity: 1; } }

/* Hero chip clusters (v1 / v2 photo heroes) */
.ov-hero-cluster { position: absolute; right: 2%; top: 56%; width: 360px; height: 360px; transform: translateY(-50%); z-index: 2; pointer-events: none; }

/* Red sweep line under hero headings */
.ov-underline { position: relative; display: inline; background-image: linear-gradient(var(--accent-color), var(--accent-color)); background-repeat: no-repeat; background-position: 0 92%; background-size: 0% 6px; transition: background-size 1.1s cubic-bezier(.7,0,.2,1) .6s; }
.ov-in .ov-underline, .ov-underline.ov-in { background-size: 100% 6px; }

@media (max-width: 991px) {
	.ov-hero-cluster { display: none; }
	.ov-chip { font-size: 13px; padding: 8px 12px 8px 8px; }
	.ov-chip i { width: 26px; height: 26px; font-size: 11px; }
	.ov-chip.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ov-chip, .ov-tag, .ov-cap, .ov-rotator .ov-words b { transition: none !important; }
	.ov-in .ov-chip > span, .ov-in .ov-chip.bob, .ov-dot { animation: none !important; }
}
