/* Homepage shots. The pictures are the storyboard stills; this file only frames them. */

body.signatech-front .site-main.signatech-scene-main {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.sg-scene {
	--navy: #12315f;
	--ease: cubic-bezier(0.33, 0, 0.2, 1);
	--rise: cubic-bezier(0.33, 0, 0.2, 1);
	--travel: 1.2s;
	position: relative;
	background: transparent;
	color: var(--navy);
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	user-select: none;
}

.sg-scene,
.sg-scene * {
	box-sizing: border-box;
}

.sg-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sg-bar {
	display: flex;
	align-items: center;
	min-height: 0;
	padding: 0 14px;
}

.sg-back,
.sg-hint {
	z-index: 40;
	font: 600 0.95rem/1 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.sg-back {
	border: 0 !important;
	border-radius: 999px;
	background: #fff !important;
	background-image: none !important;
	color: var(--navy) !important;
	padding: 0.55rem 0.95rem;
	box-shadow: 0 8px 18px rgba(16, 32, 64, 0.16);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.sg-back:hover,
.sg-back:focus-visible {
	background: var(--navy) !important;
	color: #fff !important;
}

.sg-back[hidden] {
	display: none !important;
}

.sg-hint {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	padding: 0.4rem 0.8rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--navy);
	pointer-events: none;
	white-space: nowrap;
}

.sg-scene a:focus-visible,
.sg-scene button:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--navy);
}

.sg-instant .sg-frame,
.sg-instant .sg-over,
.sg-instant .sg-plv,
.sg-instant .sg-rises {
	transition: none !important;
}

.sg-view {
	position: relative;
	width: min(100%, calc((100svh - 8.5rem) * 16 / 9));
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: transparent;
	cursor: zoom-out;
}

.sg-scene[data-shot="0"] .sg-view {
	cursor: default;
}

.sg-frames,
.sg-hits {
	position: absolute;
	inset: 0;
}

.sg-hits {
	z-index: 3;
}

.sg-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	pointer-events: none;
	transform: scale(1.08);
	transform-origin: 50% 46%;
	transition: opacity var(--travel) var(--ease), transform 1.35s var(--ease);
}

.sg-scene.is-back .sg-frame {
	transform: scale(0.9);
}

.sg-scene[data-shot="0"] .sg-frame[data-frame="0"],
.sg-scene[data-shot="1"] .sg-frame[data-frame="1"],
.sg-scene[data-shot="2"] .sg-frame[data-frame="2"],
.sg-scene[data-shot="3"] .sg-frame[data-frame="3"] {
	opacity: 1;
	transform: none;
}

.sg-under,
.sg-over {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.sg-over {
	opacity: 0;
	transition: opacity var(--travel) var(--ease);
	-webkit-mask-image: url("../img/plv-mask.png");
	mask-image: url("../img/plv-mask.png");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.sg-scene[data-shot="1"] .sg-over,
.sg-scene[data-shot="2"] .sg-over,
.sg-scene[data-shot="3"] .sg-over {
	opacity: 1;
}

.sg-scene.is-settled .sg-over {
	-webkit-mask-image: url("../img/plv-mask-settled.png");
	mask-image: url("../img/plv-mask-settled.png");
}

.sg-rises {
	position: absolute;
	inset: 0;
	z-index: 2;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s var(--ease);
}

.sg-scene[data-shot="1"]:not(.is-settled) .sg-rises {
	opacity: 1;
	transition: none;
}

.sg-slot {
	position: absolute;
	overflow: hidden;
}

.sg-plv {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: fill;
	transform: translateY(108%);
	transition: transform 0.72s var(--rise);
}

.sg-scene[data-shot="1"] .sg-plv,
.sg-scene[data-shot="2"] .sg-plv,
.sg-scene[data-shot="3"] .sg-plv {
	transform: translateY(0);
}

/* Order: totem, arch, feather flag. The door label stays painted on the photo. */
.sg-slot-totem .sg-plv { transition-delay: 0s; }
.sg-slot-arch .sg-plv { transition-delay: 0.16s; }
.sg-slot-flag .sg-plv { transition-delay: 0.48s; }

.sg-scene[data-shot="0"] .sg-slot-totem .sg-plv { transition-delay: 0.48s; }
.sg-scene[data-shot="0"] .sg-slot-arch .sg-plv { transition-delay: 0.32s; }
.sg-scene[data-shot="0"] .sg-slot-flag .sg-plv { transition-delay: 0s; }

/* Sprite boxes, percentages of the 1280×720 still. */
.sg-slot-totem { left: 12.188%; top: 56.111%; width: 6.094%; height: 23.611%; z-index: 4; }
.sg-slot-arch { left: 42.5%; top: 57.222%; width: 20%; height: 23.889%; z-index: 5; }
.sg-slot-flag { left: 77.813%; top: 51.111%; width: 6.25%; height: 35.556%; z-index: 4; }

body.signatech-front .sg-scene .sg-hit,
body.signatech-front .sg-scene button.sg-hit,
body.signatech-front .sg-scene a.sg-hit {
	position: absolute;
	z-index: 3;
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-shadow: none !important;
	text-decoration: none !important;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	opacity: 1;
	pointer-events: none;
}

body.signatech-front .sg-scene .sg-hit::before,
body.signatech-front .sg-scene .sg-hit::after {
	content: none !important;
	display: none !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

.sg-scene[data-shot="0"] .sg-hit[data-for="0"],
.sg-scene[data-shot="1"] .sg-hit[data-for="1"],
.sg-scene[data-shot="2"] .sg-hit[data-for="2"],
.sg-scene[data-shot="3"] .sg-hit[data-for="3"] {
	pointer-events: auto;
}

.sg-build { cursor: zoom-in; }
.sg-door { cursor: zoom-in; }
.sg-hit[href] { cursor: pointer; }

body.signatech-front .sg-scene a.sg-hit { z-index: 5; }
body.signatech-front .sg-scene a.sg-balloon,
body.signatech-front .sg-scene a.sg-stop,
body.signatech-front .sg-scene a.sg-mast,
body.signatech-front .sg-scene a.sg-pole,
body.signatech-front .sg-scene a.sg-imat,
body.signatech-front .sg-scene a.sg-lit { z-index: 6; }
body.signatech-front .sg-scene button.sg-words { z-index: 6; cursor: zoom-in; }
body.signatech-front .sg-scene button.sg-door { z-index: 7; }

.sg-balloon[data-for="0"],
.sg-balloon[data-for="1"] { left: 24%; top: 1.5%; width: 11.5%; height: 23.5%; }
.sg-balloon[data-for="2"] { left: 21.5%; top: 0; width: 7%; height: 14%; }

.sg-mast[data-for="0"],
.sg-mast[data-for="1"] { left: 10%; top: 26%; width: 16%; height: 18%; }
.sg-mast[data-for="2"] { left: 20%; top: 33%; width: 16%; height: 16%; }

.sg-pole[data-for="0"],
.sg-pole[data-for="1"] { left: 9.5%; top: 42%; width: 3.5%; height: 48%; }
.sg-pole[data-for="2"] { left: 20%; top: 48%; width: 3.5%; height: 44%; }

.sg-stop[data-for="0"],
.sg-stop[data-for="1"] { left: 29.5%; top: 68%; width: 9%; height: 22%; }
.sg-stop[data-for="2"] { left: 71%; top: 70%; width: 10%; height: 24%; }

.sg-imat[data-for="0"],
.sg-imat[data-for="1"] { left: 86%; top: 60%; width: 9%; height: 30%; }
.sg-imat[data-for="2"] { left: 61%; top: 64%; width: 9%; height: 27%; }

.sg-lit[data-for="0"],
.sg-lit[data-for="1"] { left: 48.5%; top: 14.5%; width: 13.5%; height: 8.5%; }
.sg-lit[data-for="2"] { left: 40.5%; top: 3.8%; width: 11%; height: 6.5%; }

.sg-words[data-for="0"] { left: 47.5%; top: 48.056%; width: 11.875%; height: 5%; }

.sg-scene[data-shot="0"] .sg-build[data-for="0"] { left: 11%; top: 7%; width: 80%; height: 70%; }
.sg-scene[data-shot="1"] .sg-build[data-for="1"] { left: 11%; top: 7%; width: 80%; height: 70%; }
.sg-scene[data-shot="2"] .sg-build[data-for="2"] { left: 4%; top: 0; width: 92%; height: 78%; }

.sg-door[data-for="1"] { left: 48%; top: 64%; width: 9%; height: 16%; }
.sg-door[data-for="2"] { left: 46%; top: 60%; width: 12%; height: 16%; }

.sg-x-totem { left: 11%; top: 54%; width: 9%; height: 28%; }
.sg-x-sign { left: 44.5%; top: 47%; width: 17%; height: 11%; }
.sg-x-arch { left: 41%; top: 56%; width: 23%; height: 27%; }
.sg-x-flag { left: 76%; top: 49%; width: 10%; height: 40%; }

.sg-e-totem { left: 3%; top: 46%; width: 13%; height: 44%; }
.sg-e-sign { left: 42%; top: 37%; width: 22%; height: 12%; }
.sg-e-arch { left: 36%; top: 48%; width: 32%; height: 32%; }
.sg-e-flag { left: 83%; top: 32%; width: 15%; height: 58%; }

.sg-room {
	top: 0;
	height: 80%;
	z-index: 5;
	color: transparent;
	font-size: 0;
}

.sg-room-signal { left: 0; width: 25%; }
.sg-room-stand { left: 25%; width: 25%; }
.sg-room-paper { left: 50%; width: 25%; }
.sg-room-gift { left: 75%; width: 25%; }

.sg-scene img {
	-webkit-user-drag: none;
}

@media (max-width: 720px) {
	.sg-hint {
		font-size: 0.78rem;
		max-width: calc(100% - 1.5rem);
		white-space: normal;
		text-align: center;
	}

	.sg-back {
		font-size: 0.85rem;
		padding: 0.5rem 0.8rem;
	}

	.sg-view {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sg-frame,
	.sg-over,
	.sg-plv {
		transition: none !important;
	}

	.sg-frame {
		transform: none !important;
	}

	.sg-rises {
		display: none !important;
	}

	.sg-over {
		-webkit-mask-image: none !important;
		mask-image: none !important;
	}
}

html.sg-reduce .sg-frame,
html.sg-reduce .sg-over,
html.sg-reduce .sg-plv {
	transition: none !important;
}

html.sg-reduce .sg-frame {
	transform: none !important;
}

html.sg-reduce .sg-rises {
	display: none !important;
}

html.sg-reduce .sg-over {
	-webkit-mask-image: none !important;
	mask-image: none !important;
}
