/* ==================================================================
   KARAM AL SHAM — hero slideshow (v3)
   Full-bleed, frameless, edge-to-edge. Pairs with hero.php ("The craft").
=================================================================== */

.hero-slider {
	--slider-ease: cubic-bezier(0.22, 1, 0.36, 1);
	position: relative;
	isolation: isolate;
	height: 100svh;
	min-height: 660px;
	overflow: hidden;
	background: #071a12;
	color: var(--cream);
}

.hero-slider__stage { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.15s var(--slider-ease), visibility 1.15s;
	will-change: opacity;
}
.hero-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}
.hero-slide picture { display: block; width: 100%; height: 100%; }
.hero-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 46%;
	transform: scale(1.045);
	transform-origin: 52% 48%;
}
.hero-slide.is-active img { animation: ks-kenburns 9s var(--slider-ease) both; }

@keyframes ks-kenburns {
	from { transform: scale(1.09) translate3d(0.6%, -0.4%, 0); }
	to   { transform: scale(1.015) translate3d(0, 0, 0); }
}

.hero-slider__scrim {
	position: absolute;
	inset: 0;
	z-index: 3;
	background:
		linear-gradient(90deg, rgba(4, 15, 10, 0.93) 0%, rgba(4, 15, 10, 0.74) 30%, rgba(4, 15, 10, 0.22) 62%, rgba(4, 15, 10, 0.08) 100%),
		linear-gradient(0deg, rgba(4, 14, 9, 0.95) 0%, rgba(4, 14, 9, 0.42) 34%, rgba(4, 14, 9, 0) 62%),
		linear-gradient(180deg, rgba(4, 14, 9, 0.9) 0%, rgba(4, 14, 9, 0.62) 9%, rgba(4, 14, 9, 0.12) 24%, rgba(4, 14, 9, 0) 32%);
}
.hero-slider__vignette {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	box-shadow: inset 0 0 22vw rgba(2, 8, 6, 0.55);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
	mix-blend-mode: overlay;
	opacity: 0.28;
}

/* --- Content ------------------------------------------------------ */
.hero-slider__inner {
	position: relative;
	z-index: 5;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: clamp(18px, 2.4vh, 30px);
	padding: clamp(112px, 15vh, 180px) clamp(150px, 11vw, 210px) clamp(108px, 13vh, 150px) var(--pad);
	max-width: 1680px;
	margin-inline: auto;
}
.hero-slider__copy-stack {
	position: relative;
	max-width: 960px;
	min-height: clamp(240px, 34vh, 380px);
}
.hero-slider__copy {
	position: absolute;
	inset: auto 0 0 0;
	opacity: 0;
	transform: translate3d(0, 26px, 0);
	transition: opacity 0.7s var(--slider-ease), transform 0.9s var(--slider-ease);
	pointer-events: none;
}
.hero-slider__copy.is-active {
	position: relative;
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
.hero-slider__kicker {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 clamp(14px, 2vh, 24px);
	color: var(--gold);
	font-family: var(--font-body);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.26em;
	text-transform: uppercase;
}
.hero-slider__kicker-line {
	display: inline-block;
	width: clamp(30px, 3vw, 54px);
	height: 1px;
	background: currentColor;
	opacity: 0.65;
}
.hero-slider__title {
	margin: 0;
	font-family: var(--font-serif);
	font-size: clamp(46px, 7.4vw, 112px);
	font-weight: 500;
	line-height: 0.9;
	letter-spacing: -0.025em;
	text-wrap: balance;
	color: var(--white);
}
.hero-slider__title span,
.hero-slider__title em { display: block; }
.hero-slider__title em {
	font-style: italic;
	font-weight: 400;
	color: var(--gold-bright);
}
.hero-slider__lede {
	max-width: 520px;
	margin: clamp(16px, 2.2vh, 26px) 0 0;
	color: rgba(248, 241, 220, 0.8);
	font-size: clamp(14px, 1.1vw, 16px);
	line-height: 1.75;
	text-wrap: pretty;
}

.hero-slider__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: clamp(18px, 3vh, 34px);
}
.hero-slider__actions .btn {
	padding: 17px 30px;
	font-size: 11px;
	letter-spacing: 0.16em;
}
.hero-slider__actions .btn--glass {
	background: rgba(6, 24, 17, 0.52);
	border-color: rgba(232, 204, 131, 0.5);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.hero-slider__actions .btn--glass:hover {
	background: rgba(201, 163, 78, 0.18);
	border-color: var(--gold-bright);
}

.hero-slider__facts {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(24px, 4vw, 64px);
	margin: clamp(22px, 3.4vh, 40px) 0 0;
	padding-top: clamp(18px, 2.4vh, 26px);
	border-top: 1px solid rgba(248, 241, 220, 0.16);
	max-width: 880px;
}
.hero-slider__facts div { display: grid; gap: 5px; }
.hero-slider__facts dt {
	color: rgba(248, 241, 220, 0.45);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}
.hero-slider__facts dd {
	margin: 0;
	color: var(--cream);
	font-size: 12.5px;
	letter-spacing: 0.02em;
}

/* --- Chapter rail ------------------------------------------------- */
.hero-slider__rail {
	position: absolute;
	z-index: 6;
	top: 50%;
	right: clamp(22px, 3.4vw, 54px);
	transform: translateY(-42%);
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-left: 16px;
	background: linear-gradient(90deg, rgba(4, 14, 9, 0), rgba(4, 14, 9, 0.38));
	border-radius: 60px;
}
.hero-slider__rail-btn {
	position: relative;
	display: grid;
	grid-template-columns: auto 0fr;
	align-items: center;
	gap: 0;
	width: auto;
	padding: 10px 2px 10px 10px;
	color: rgba(248, 241, 220, 0.55);
	text-align: right;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
	transition: color 0.35s ease, gap 0.4s var(--slider-ease);
}
.hero-slider__rail-btn::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 1px;
	height: 100%;
	background: rgba(248, 241, 220, 0.16);
}
.hero-slider__rail-num {
	font-family: var(--font-serif);
	font-size: 15px;
	letter-spacing: 0.04em;
	line-height: 1;
	padding-right: 13px;
}
.hero-slider__rail-label {
	overflow: hidden;
	white-space: nowrap;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity 0.3s ease, max-width 0.5s var(--slider-ease);
}
.hero-slider__rail-bar {
	position: absolute;
	top: 0;
	right: 0;
	width: 2px;
	height: 100%;
	overflow: hidden;
}
.hero-slider__rail-bar i {
	display: block;
	width: 100%;
	height: 0;
	background: var(--gold-bright);
	transition: height 0.3s ease;
}
.hero-slider__rail-btn.is-active { color: var(--gold-bright); grid-template-columns: auto 1fr; gap: 9px; }
.hero-slider__rail-btn.is-active .hero-slider__rail-label { opacity: 1; }
.hero-slider__rail-btn.is-active .hero-slider__rail-bar i { height: 100%; }
.hero-slider__rail-btn:hover { color: var(--cream); }

/* --- Controls ----------------------------------------------------- */
.hero-slider__controls {
	position: absolute;
	z-index: 6;
	left: var(--pad);
	right: clamp(150px, 11vw, 210px);
	bottom: clamp(26px, 4vh, 42px);
	display: flex;
	align-items: center;
	gap: clamp(16px, 2vw, 30px);
}
.hero-slider__progress {
	position: relative;
	flex: 1 1 auto;
	height: 1px;
	background: rgba(248, 241, 220, 0.2);
	overflow: hidden;
}
.hero-slider__progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--gold-bright);
	box-shadow: 0 0 12px rgba(243, 211, 111, 0.5);
}
.hero-slider__count {
	display: flex;
	align-items: center;
	gap: 9px;
	color: rgba(248, 241, 220, 0.55);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	font-variant-numeric: tabular-nums;
}
.hero-slider__count [data-slider-current] { color: var(--gold-bright); }
.hero-slider__count-rule { width: 22px; height: 1px; background: rgba(248, 241, 220, 0.3); }
.hero-slider__arrows { display: flex; gap: 8px; }
.hero-slider__arrow {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(248, 241, 220, 0.24);
	border-radius: 50%;
	color: var(--cream);
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.hero-slider__arrow .icon { width: 15px; height: 15px; }
.hero-slider__arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--green-950); }
.hero-slider__arrow:first-child .icon { transform: rotate(180deg); }
.hero-slider__scroll {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: rgba(248, 241, 220, 0.5);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	transition: color 0.3s ease;
}
.hero-slider__scroll:hover { color: var(--gold-bright); }
.hero-slider__scroll-icon {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border: 1px solid rgba(248, 241, 220, 0.22);
	border-radius: 50%;
}
.hero-slider__scroll-icon .icon { width: 12px; height: 12px; }

/* Paused state */
.hero-slider.is-paused .hero-slide.is-active img { animation-play-state: paused; }

@media (max-width: 1100px) {
	.hero-slider__inner { padding-right: clamp(96px, 12vw, 150px); }
	.hero-slider__controls { right: clamp(96px, 12vw, 150px); }
}

@media (max-width: 780px) {
	.hero-slider { min-height: 600px; height: 100svh; }
	.hero-slider__scrim {
		background:
			linear-gradient(0deg, rgba(4, 14, 9, 0.96) 2%, rgba(4, 14, 9, 0.66) 46%, rgba(4, 14, 9, 0.22) 78%, rgba(4, 14, 9, 0.5) 100%);
	}
	.hero-slider__inner {
		padding: 96px var(--pad) 116px;
		justify-content: flex-end;
	}
	.hero-slider__title { font-size: clamp(42px, 12vw, 64px); line-height: 0.94; }
	.hero-slider__lede { font-size: 13.5px; line-height: 1.65; }
	.hero-slider__facts { display: none; }
	.hero-slider__actions .btn { padding: 15px 22px; }
	.hero-slider__rail {
		top: auto;
		right: auto;
		left: var(--pad);
		bottom: 74px;
		transform: none;
		flex-direction: row;
		gap: 20px;
	}
	.hero-slider__rail-btn { display: block; padding: 4px 0; }
	.hero-slider__rail-btn::before,
	.hero-slider__rail-label { display: none; }
	.hero-slider__rail-num { padding: 0; font-size: 13px; }
	.hero-slider__rail-bar { position: relative; right: auto; top: auto; width: 100%; height: 1px; margin-top: 6px; }
	.hero-slider__rail-bar i { width: 0; height: 100%; transition: width 0.3s ease; }
	.hero-slider__rail-btn.is-active .hero-slider__rail-bar i { width: 100%; height: 100%; }
	.hero-slider__controls { left: var(--pad); right: var(--pad); bottom: 24px; gap: 14px; }
	.hero-slider__progress { display: none; }
	.hero-slider__scroll { margin-left: auto; }
	.hero-slider__scroll-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.hero-slide.is-active img,
	.hero-slider__copy { animation: none !important; transition: none !important; }
}
