/* ==========================================================================
   HINTO HERO GATE ELEMENTOR ADDON STYLES
   ========================================================================== */

.hinto-doors-wrapper {
	--sans: 'Jost', system-ui, -apple-system, sans-serif;
	--mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--pad: clamp(20px, 5.5vw, 90px);

	width: 100%;
	position: relative;
	box-sizing: border-box;
	height: 220vh; /* Default scroll travel height */
	z-index: 1;
}

.hinto-doors-wrapper *,
.hinto-doors-wrapper *::before,
.hinto-doors-wrapper *::after {
	box-sizing: border-box;
}

.hinto-doors {
	position: sticky;
	top: 0;
	z-index: 1;
	height: 100vh;
	min-height: 540px;
	overflow: hidden;
	background: #FDF2DE;
	color: #FDF2DE;
	font-family: var(--sans);
	will-change: transform;
}

/* ---------- Background Content ---------- */
.hinto-firstview {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: grid;
	place-items: center;
	padding: 0 var(--pad);
	text-align: center;
	overflow: hidden;
}

.hinto-firstview--text {
	background: radial-gradient(115% 74% at 50% 46%, rgba(103,77,51,.07), transparent 64%), #FDF2DE;
}

.hinto-firstview--video {
	background: #000000;
}

/* Full Width Video Background */
.hinto-firstview__video-wrap {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 0;
	pointer-events: none;
}

.hinto-firstview__video {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	transform: translate(-50%, -50%);
	object-fit: cover;
}

.hinto-firstview__iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;
	min-height: 100vh;
	min-width: 177.77vh;
	transform: translate(-50%, -50%);
	pointer-events: none;
	border: 0;
}

.hinto-firstview__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-color: rgba(0, 0, 0, 0.35);
}

.hinto-firstview__in {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(16px, 2.2vw, 26px);
	max-width: min(90vw, 660px);
	transform: scale(calc(.95 + var(--p, 0) * .05));
	transition: transform 0.1s linear;
}

.hinto-label {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: rgba(103, 77, 51, .60);
	margin: 0;
}

.hinto-bar {
	display: block;
	height: 5px;
	width: 56px;
	border-radius: 2.5px;
	background: #674D33;
	flex: 0 0 auto;
}

.hinto-firstview__line {
	margin: 0;
	font-weight: 200;
	font-size: clamp(30px, 5.4vw, 68px);
	line-height: 1.02;
	letter-spacing: -.035em;
	color: #674D33;
	text-wrap: balance;
}

.hinto-firstview__sub {
	margin: 0;
	font-size: clamp(14px, 1.6vw, 18px);
	line-height: 1.6;
	color: rgba(103, 77, 51, .60);
	max-width: 46ch;
	text-wrap: balance;
}

/* ---------- Door Leaves ---------- */
.hinto-door {
	position: absolute;
	top: 0;
	height: 100%;
	width: 50%;
	overflow: hidden;
	background: #000000;
	will-change: transform;
}

.hinto-door--l {
	left: 0;
	transform: translate3d(calc(var(--p, 0) * -102%), 0, 0);
	box-shadow: 1px 0 0 0 #000000;
}

.hinto-door--r {
	right: 0;
	transform: translate3d(calc(var(--p, 0) * 102%), 0, 0);
}

.hinto-door__art {
	position: absolute;
	top: 0;
	height: 100%;
	width: 200%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(16px, 2.4vw, 30px);
	transform: scale(calc(1 + var(--p, 0) * .14));
	will-change: transform;
}

.hinto-door--l .hinto-door__art { left: 0; }
.hinto-door--r .hinto-door__art { right: 0; }

.hinto-door--l::after,
.hinto-door--r::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 80px;
	pointer-events: none;
	opacity: var(--p, 0);
}

.hinto-door--l::after {
	right: 0;
	background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .85));
}

.hinto-door--r::after {
	left: 0;
	background: linear-gradient(270deg, transparent, rgba(0, 0, 0, .85));
}

/* ---------- 4 Corner Media Elements (Images / Videos / GIFs) ---------- */
.hinto-corner-media {
	position: absolute;
	z-index: 2;
	width: clamp(200px, 25vw, 360px);
	height: clamp(140px, 18vw, 270px);
	border-radius: 4px;
	overflow: hidden;
	background: #0a0a0a;
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
	pointer-events: auto;
}

.hinto-corner-media:hover {
	transform: scale(1.03);
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
}

.hinto-corner-media__item {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0;
}

.hinto-corner-media--tl {
	top: clamp(20px, 4vw, 45px);
	left: clamp(20px, 4vw, 45px);
}

.hinto-corner-media--bl {
	bottom: clamp(20px, 4vw, 45px);
	left: clamp(20px, 4vw, 45px);
}

.hinto-corner-media--tr {
	top: clamp(20px, 4vw, 45px);
	right: clamp(20px, 4vw, 45px);
}

.hinto-corner-media--br {
	bottom: clamp(20px, 4vw, 45px);
	right: clamp(20px, 4vw, 45px);
}

@media (max-width: 960px) {
	.hinto-corner-media {
		width: clamp(140px, 24vw, 220px);
		height: clamp(105px, 18vw, 165px);
	}
	.hinto-corner-media--tl, .hinto-corner-media--tr {
		top: clamp(50px, 3vw, 25px);
	}
	.hinto-corner-media--bl, .hinto-corner-media--br {
		bottom: clamp(50px, 3vw, 25px);
	}
	.hinto-corner-media--tl, .hinto-corner-media--bl {
		left: clamp(15px, 3vw, 25px);
	}
	.hinto-corner-media--tr, .hinto-corner-media--br {
		right: clamp(15px, 3vw, 25px);
	}
}

@media (max-width: 600px) {
	.hinto-corner-media {
		width: clamp(95px, 45vw, 150px);
        height: clamp(70px, 45vw, 180px);
	}
}

.hinto-mark {
	display: block;
	fill: currentColor;
}

.hinto-door__mark {
	width: min(46vw, 430px);
	color: #FFFFFF;
}

.pizza-logo-mark {
	width: clamp(260px, 38vw, 440px);
	height: auto;
	color: #FFFFFF;
	fill: currentColor;
}

.hinto-logo-img {
	max-width: min(46vw, 320px);
	height: auto;
	object-fit: contain;
}

.hinto-wordmark {
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	letter-spacing: .4em;
	text-indent: .4em;
}

.hinto-door__word {
	font-size: clamp(15px, 2.4vw, 28px);
	color: #FFFFFF;
}

.hinto-door__slogan {
	margin: 0;
	font-weight: 700;
	font-size: clamp(14px, 2vw, 24px);
	letter-spacing: .25em;
	text-transform: uppercase;
	color: #FFFFFF;
}

/* ---------- Overlay UI Badges & Scroll Cue ---------- */
.hinto-doors__ui {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	opacity: calc(1 - var(--p, 0) * 2.4);
}

.hinto-doors__uiIn {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(18px, 2.6vh, 30px) var(--pad) clamp(20px, 3vh, 32px);
}

.hinto-doors__ui a {
	pointer-events: auto;
}

.hinto-doors__row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}

.hinto-doors__ui .hinto-label {
	color: rgba(253, 242, 222, .58);
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hinto-doors__when {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.hinto-doors__when b {
	font-family: var(--mono);
	font-weight: 400;
	font-size: 14px;
	letter-spacing: .02em;
	color: #FDF2DE;
}

.hinto-cue {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	color: rgba(253, 242, 222, .58);
	text-decoration: none;
}

.hinto-cue span {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .22em;
	text-transform: uppercase;
}

.hinto-cue i {
	display: block;
	width: 1px;
	height: 40px;
	background: rgba(253, 242, 222, .18);
	position: relative;
	overflow: hidden;
}

.hinto-cue i::after {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 1px;
	height: 16px;
	background: #FDF2DE;
	animation: hinto-cue-anim 2.4s var(--ease) infinite;
}

@keyframes hinto-cue-anim {
	0% { transform: translateY(-18px); }
	55%, 100% { transform: translateY(42px); }
}

/* SVG gate animation build-in */
.hinto-mark rect { transform-box: fill-box; }
.hinto-door .post { transform-origin: bottom center; animation: hinto-rise .9s var(--ease) both; }
.hinto-door .post--r { animation-delay: .1s; }
.hinto-door .lintel { transform-origin: center; animation: hinto-span .85s var(--ease) .48s both; }
.hinto-door .tie { transform-origin: center; animation: hinto-span .75s var(--ease) .76s both; }

@keyframes hinto-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hinto-span { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hinto-door__word { animation: hinto-settle 1s var(--ease) 1.02s both; }
@keyframes hinto-settle { from { opacity: 0; letter-spacing: .85em; } to { opacity: 1; letter-spacing: .4em; } }

.hinto-door__slogan, .hinto-doors__uiIn { animation: hinto-lift .9s var(--ease) 1.3s both; }
@keyframes hinto-lift { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.hinto-door--l, .hinto-door--r { transform: none; }
	.hinto-door__art { transform: none; }
	.hinto-cue i::after { animation: none; }
	.hinto-door .post, .hinto-door .lintel, .hinto-door .tie, .hinto-door__word, .hinto-door__slogan, .hinto-doors__uiIn { animation: none; }
}
