/* Unique Slider v1.1 – boxed olive slider */
.us-slider {
	--us-dir: 1;
	--us-ease: cubic-bezier(.22, .8, .24, 1);
	position: relative;
	width: 100%;
	padding: clamp(16px, 4vw, 56px) clamp(12px, 3vw, 40px);
	background: var(--us-outer, #f3efe2);
	transition: background-color 1.4s ease;
	outline: none;
	box-sizing: border-box;
	font-family: "Helvetica Neue", Arial, sans-serif;
}
.us-slider *, .us-slider *::before, .us-slider *::after { box-sizing: border-box; }

/* The boxed olive card */
.us-box {
	position: relative;
	max-width: var(--us-w, 1200px);
	margin: 0 auto;
	overflow: hidden;
	border-radius: 28px;
	background: var(--us-box, #6b7a3a);
	color: var(--us-text, #f6f1e1);
	box-shadow: 0 30px 60px -25px rgba(40, 50, 15, .45);
}

/* Slides share one grid cell -> box height fits the tallest slide */
.us-stage { display: grid; min-height: var(--us-h, 620px); }
.us-slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, .95fr) minmax(0, .4fr);
	padding: 48px 4% 48px 6%;
	opacity: 0; visibility: hidden; pointer-events: none;
}
.us-slide.is-active  { opacity: 1; visibility: visible; pointer-events: auto; z-index: 2; }
.us-slide.is-leaving { opacity: 1; visibility: visible; z-index: 1; }

/* Left column */
.us-info { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.us-label { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; opacity: .85; }
.us-title {
	margin: 0; font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
	font-weight: 500; font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: 1; letter-spacing: -.01em; color: inherit;
}
.us-price { margin: 14px 0 0; font-family: Georgia, serif; font-size: 1.15rem; }
.us-quote { margin: 0 0 14px; max-width: 340px; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.3rem; line-height: 1.3; }
.us-desc  { margin: 0 0 18px; max-width: 320px; font-size: 12px; line-height: 1.6; opacity: .8; }
.us-link  { display: inline-block; font-size: 12px; font-weight: 600; color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s; }
.us-link:hover { border-color: currentColor; }

/* Middle column */
.us-media { display: flex; align-items: center; justify-content: center; }
.us-frame { position: relative; height: 100%; max-height: 520px; aspect-ratio: 5 / 8; }
.us-arch {
	position: absolute; inset: 0; border-radius: 999px; overflow: hidden;
	background: rgba(255,255,255,.2) center / cover no-repeat;
	box-shadow: 0 0 0 8px rgba(255,255,255,.08);
}
.us-product {
	position: absolute; left: 50%; bottom: -3%; height: 96%; width: auto; max-width: none;
	transform: translateX(-50%); filter: drop-shadow(0 22px 22px rgba(0,0,0,.28));
}

/* ---------- Animation ---------- */
.us-anim {
	opacity: 0; transform: translate3d(calc(var(--us-dir) * -50px), 0, 0);
	transition: opacity .45s ease, transform .6s var(--us-ease);
}
.us-arch { clip-path: inset(100% 0 0 0 round 999px); transition: clip-path .7s var(--us-ease); }
.us-product {
	opacity: 0; transform: translate3d(calc(-50% + var(--us-dir) * -70px), 30px, 0);
	transition: opacity .45s ease, transform .7s var(--us-ease);
}
/* waiting slides start on the opposite side */
.us-slide:not(.is-active):not(.is-leaving) .us-anim    { transform: translate3d(calc(var(--us-dir) * 50px), 0, 0); transition: none; }
.us-slide:not(.is-active):not(.is-leaving) .us-product { transform: translate3d(calc(-50% + var(--us-dir) * 70px), 30px, 0); transition: none; }
.us-slide:not(.is-active):not(.is-leaving) .us-arch    { transition: none; }
/* entering – staggered */
.us-slide.is-active .us-anim { opacity: 1; transform: none; transition: opacity .8s ease, transform 1s var(--us-ease); }
.us-slide.is-active .us-label { transition-delay: .15s; }
.us-slide.is-active .us-title { transition-delay: .22s; }
.us-slide.is-active .us-price { transition-delay: .3s; }
.us-slide.is-active .us-quote { transition-delay: .38s; }
.us-slide.is-active .us-desc  { transition-delay: .44s; }
.us-slide.is-active .us-link  { transition-delay: .5s; }
.us-slide.is-active .us-arch    { clip-path: inset(0 0 0 0 round 999px); transition: clip-path 1s var(--us-ease) .1s; }
.us-slide.is-active .us-product { opacity: 1; transform: translate3d(-50%, 0, 0); transition: opacity .8s ease .35s, transform 1.1s var(--us-ease) .3s; }

/* ---------- Peek of next bottle ---------- */
.us-peek {
	position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	width: 60px; height: 58%; padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; z-index: 3;
	transition: width .35s var(--us-ease);
}
.us-peek:hover { width: 80px; }
.us-peek img { height: 100%; width: auto; max-width: none; display: block; transition: opacity .4s ease; filter: drop-shadow(0 10px 12px rgba(0,0,0,.25)); }
.us-peek img[src=""] { visibility: hidden; }

/* ---------- Controls ---------- */
.us-controls { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.us-counter { position: absolute; top: 34px; right: 4%; font-size: 11px; letter-spacing: .12em; }
.us-nav { position: absolute; right: 4%; bottom: 34px; display: flex; gap: 10px; pointer-events: auto; }
.us-btn {
	width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
	background: transparent; color: inherit; border: 1px solid currentColor;
	transition: background-color .3s, color .3s, transform .3s;
}
.us-btn:hover { background: var(--us-text, #f6f1e1); color: var(--us-box, #6b7a3a); transform: scale(1.06); }
.us-btn:focus-visible, .us-peek:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.us-slide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; padding-left: 5%; }
	.us-peek { width: 40px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.us-box { border-radius: 20px; }
	.us-stage { min-height: 0; }
	.us-slide { grid-template-columns: 1fr; padding: 60px 22px 100px; gap: 28px; }
	.us-media { order: -1; }
	.us-frame { height: 340px; max-height: none; }
	.us-info { gap: 22px; }
	.us-title { font-size: 3.2rem; }
	.us-quote { font-size: 1.15rem; max-width: none; }
	.us-desc  { max-width: none; }
	.us-peek  { display: none; }
	.us-counter { top: 22px; right: 22px; }
	.us-nav { right: 22px; bottom: 26px; }
	.us-btn { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
	.us-slider, .us-slider * { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
