/* Scroll journey: a sticky full-viewport stage the height of the journey, with the canvas behind text layers.
   Ported from web3/journey.html, where everything was fixed and the page held nothing else. */
.journey-stage {
	--night: #181633;
	position: relative;
	height: 200vh; /* keep equal to PAGE_HEIGHT in journey.js */
	color: var(--night);
}

.journey-pin {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow: hidden;
	background: #fff;
	z-index: 0;
}

/* No-transition mode: the hero and the quote are ordinary sections, one after the other. */
.journey-static { height: auto; }
.journey-static .journey-pin { position: relative; height: auto; overflow: visible; }
.journey-static .journey-layer { position: relative; inset: auto; pointer-events: auto; }
.journey-static .journey-layer[data-layer="hero"] .basic-container { padding-bottom: 120px; }
.journey-static .journey-layer-right { display: flex; justify-content: flex-end; align-items: center; min-height: 72vh; padding: 96px 80px; background: #fff; overflow: hidden; }
.journey-static .journey-field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.journey-static .journey-layer-right::before { opacity: 1; z-index: 1; }
.journey-static .journey-layer-right .journey-copy { position: relative; inset: auto; z-index: 2; transform: none; translate: none; opacity: 1; margin: 0; }
.journey-static .journey-progress { display: none; }
@media screen and (max-width: 991px) {
	.journey-static .journey-layer-right { padding: 64px 24px; align-items: flex-start; }
	.journey-static .journey-layer-right::before { background: linear-gradient(180deg, rgba(244, 241, 236, 0.94) 52%, rgba(244, 241, 236, 0) 82%); }
	.journey-static .journey-layer-right .journey-copy { inset: auto; width: 100%; }
	.journey-static .journey-layer[data-layer="hero"] .basic-container { padding-bottom: 64px; }
}

.journey-field { display: none; }

#journeyCanvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	z-index: 0;
}

.journey-layer {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.journey-layer-right::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(244, 241, 236, 0) 34%, rgba(244, 241, 236, 0.92) 68%);
	opacity: var(--veil, 0);
}

.journey-layer .basic-container {
	background: transparent;
}

.journey-layer .hero-content,
.journey-layer .hero-subtitle._2,
.journey-layer .hero-button-2 {
	will-change: transform, opacity;
}

.journey-layer .hero-subtitle {
	font-size: 19px;
}

/* The empty grid cell where the hero box is drawn; the renderer reads its rectangle. */
#journeySlot {
	grid-area: span 1 / span 5 / span 1 / span 5;
	aspect-ratio: 1 / 0.66;
	box-sizing: content-box;
	padding-bottom: 8px;
}

.journey-copy {
	position: absolute;
	top: 50%;
	transform: translate3d(0, 40px, 0);
	opacity: 0;
	width: min(40vw, 560px);
	margin-top: -1px;
	translate: 0 -50%;
	will-change: transform, opacity;
}

.journey-layer-right .journey-copy { right: 80px; }

.journey-eyebrow {
	font-family: 'DM Sans', sans-serif;
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 20px;
	opacity: 0.7;
}

.journey-quote {
	text-align: right;
	width: min(46vw, 680px);
	margin: 0;
	padding: 0;
	border: 0;
	font-style: normal;
}

.journey-copy .journey-quote-text {
	font-family: 'DM Sans', sans-serif;
	font-weight: 400;
	font-size: clamp(28px, 3.2vw, 46px);
	line-height: 1.18;
	letter-spacing: -0.012em;
	margin: 0 0 36px;
	font-style: normal;
	text-wrap: balance;
	-webkit-text-fill-color: currentColor;
}

.journey-quote footer {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-family: Inter, sans-serif;
	font-size: 15px;
	line-height: 1.4;
}

.journey-quote footer strong {
	font-family: 'DM Sans', sans-serif;
	font-weight: 500;
	font-size: 18px;
}

.journey-quote footer span { opacity: 0.7; }

.journey-progress {
	position: absolute;
	right: 80px;
	bottom: 28px;
	z-index: 3;
	font-family: 'DM Sans', sans-serif;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.55;
}

@media screen and (max-width: 991px) {
	.journey-copy { width: calc(100vw - 48px); }
	.journey-layer-right .journey-copy { left: 24px; right: 24px; top: auto; bottom: 12vh; translate: 0 0; }
	.journey-quote { width: calc(100vw - 48px); }
	.journey-copy .journey-quote-text { font-size: 30px; margin-bottom: 16px; }
	.journey-progress { display: none; }
	.journey-layer-right::before { background: linear-gradient(180deg, rgba(244, 241, 236, 0) 28%, rgba(244, 241, 236, 0.94) 58%); }
}
