/* Full-screen section mode. panels.js marks each screen with .mcc-panel. */
/*
 * The page itself never scrolls here, so a downward swipe at the top of a screen would reach the browser
 * as "pull to refresh". overscroll-behavior: none keeps that swipe for moving back a screen.
 */
.is-panels,
.is-panels body {
	height: 100%;
	overflow: hidden;
	overscroll-behavior: none;
}

.is-panels .mcc-panel {
	position: fixed;
	inset: 0;
	z-index: 1;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	visibility: hidden;
	scrollbar-width: none;
	outline: none;
}

.is-panels .mcc-panel::-webkit-scrollbar {
	display: none;
}

.is-panels .mcc-panel.is-current {
	z-index: 2;
	visibility: visible;
}

.is-panels section.mcc-panel:not(.hero, .vehicle) {
	display: flex;
	flex-direction: column;
	justify-content: safe center;
	padding-block: calc(var(--header-height) + 2rem) 3rem;
	border: 0;
}

.is-panels .join.mcc-panel > .container {
	margin-block: auto;
}

.is-panels .join.mcc-panel > .site-footer {
	width: 100%;
	padding-block: 2rem 0;
	text-align: left;
}

.panel-curtain {
	position: fixed;
	top: -20vh;
	z-index: 50;
	width: 140vw;
	height: 140vh;
	visibility: hidden;
	pointer-events: none;
	will-change: transform;
}

/* Moving forward, the curtain enters from the right with a curved leading edge. */
.panel-curtain.is-forward {
	left: 100%;
	border-radius: 40vw 0 0 40vw / 70vh 0 0 70vh;
}

.panel-curtain.is-backward {
	right: 100%;
	border-radius: 0 40vw 40vw 0 / 0 70vh 70vh 0;
}

/* Rides above the curtains so it visibly drives across each transition. */
.travel-vehicle {
	position: fixed;
	top: 62vh;
	left: 105vw;
	z-index: 60;
	width: 34vw;
	height: auto;
	visibility: hidden;
	pointer-events: none;
	filter: drop-shadow(0 1.5rem 1.5rem rgba(16, 19, 24, 0.35));
	will-change: left, top, width;
}

@media (max-width: 767px) {
	.is-panels section.mcc-panel:not(.hero, .vehicle) {
		padding-block: calc(var(--header-height) + 1.25rem) 2rem;
	}
}

.panel-dots {
	position: fixed;
	top: 50%;
	right: calc(var(--gutter) * 0.5);
	z-index: 90;
	display: flex;
	flex-direction: column;
	transform: translateY(-50%);
}

.panel-dots button {
	position: relative;
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.panel-dots button::after {
	content: "";
	width: 0.625rem;
	height: 0.625rem;
	border: 1px solid var(--bone);
	border-radius: 50%;
	transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.panel-dots button:hover::after {
	transform: scale(1.3);
}

.panel-dots button[aria-current="true"]::after {
	border-color: var(--sky);
	background: var(--sky);
	transform: scale(1.4);
}

/* The section name, sliding out to the left of its dot on hover, keyboard focus, or just after arriving. */
.panel-dots__label {
	position: absolute;
	top: 50%;
	right: calc(100% + 0.375rem);
	padding: 0.375rem 0.75rem;
	border: 1px solid rgba(60, 191, 240, 0.35);
	border-radius: 999px;
	background: rgba(16, 19, 24, 0.88);
	color: #f0f2f3;
	font-family: var(--font-heading);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1;
	white-space: nowrap;
	text-transform: uppercase;
	opacity: 0;
	transform: translate(0.5rem, -50%);
	transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
	pointer-events: none;
	backdrop-filter: blur(6px);
}

.panel-dots button:hover .panel-dots__label,
.panel-dots button:focus-visible .panel-dots__label,
.panel-dots button.is-announced .panel-dots__label {
	opacity: 1;
	transform: translate(0, -50%);
}

.panel-dots button[aria-current="true"] .panel-dots__label {
	border-color: #3cbff0;
	color: #3cbff0;
}

.panel-dots.is-dark button::after {
	border-color: var(--ink);
}

.panel-dots.is-dark button[aria-current="true"]::after {
	background: var(--ink);
}

/* Phones: the dots would crowd the content. */
@media (max-width: 767px) {
	.panel-dots {
		display: none;
	}
}

/*
 * An Elementor block used as a screen: only its position changes here. Its
 * padding, alignment and background stay as set in Elementor.
 */
.is-panels .mcc-panel:not(section) {
	--min-height: 100%;
	/* Elementor wraps overflowing items into a new column; a screen taller than the window scrolls instead. */
	--flex-wrap: nowrap;
}

/* The inner wrapper grows with its content instead of shrinking to the window and overflowing inside it. */
.is-panels .mcc-panel:not(section) > .e-con-inner {
	flex-shrink: 0;
	height: auto;
	min-height: 100%;
}

/* Taller than the window (panels.js): start at the top and scroll, whatever the alignment set in Elementor. */
.is-panels .mcc-panel.is-tall,
.is-panels .mcc-panel.is-tall > .e-con-inner {
	--justify-content: flex-start !important;
	justify-content: flex-start !important;
}
