:root {
	--bg: #000000;
	--bg-overlay: rgba(0, 0, 0, 0.8);
	--color: #ffffff;
	--label: #9d9494;
	--dim: #585858;
	--soft: #a3a3a3;
	--primary: #0cd6ae;
	--primary-shadow: #0ad7af50;
	--danger: #ff1d1d;
	--mono: "VCR OSD Mono", "Courier New", monospace;
	--padding-container: 16px;
}

html,
body {
	overflow-x: clip;
}

* {
	font-family: "Raleway", Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: var(--color);
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--bg);
}

a {
	text-decoration: none;
}

img {
	display: block;
}

.container {
	max-width: calc(1112px + var(--padding-container) * 2);
	margin: auto;
	padding-inline: var(--padding-container);
}

.eyebrow {
	display: block;
	font-family: var(--mono);
	color: var(--dim);
	text-transform: uppercase;
}

.button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 263px;
	height: 56px;
	font-family: var(--mono);
	font-size: 21px;
	color: var(--primary);
	text-transform: uppercase;
	background: var(--bg);
	border: 1px solid var(--primary);
	transition:
		background-color 0.25s ease,
		color 0.25s ease,
		box-shadow 0.25s ease;
}

.button:hover,
.button:focus-visible {
	background: var(--primary);
	color: var(--bg);
	box-shadow: 0 0 24px var(--primary-shadow);
}

header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: max(64px, calc(104px * min(1, var(--stage-scale, 1))));
	padding-top: calc(16px * min(1, var(--stage-scale, 1)));
	display: flex;
	justify-content: center;
	background: var(--bg);
	z-index: 20;
}

header > nav {
	max-width: calc((1112px + var(--padding-container) * 2) * max(1, var(--stage-scale, 1)));
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

header > nav img.logo {
	width: 114px;
	height: 35px;
}

.stage {
	position: relative;
	height: 700vh;
}

.stage-anchor {
	position: absolute;
	left: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.stage-sticky {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow: hidden;
	background: var(--bg);
}

.stage-background {
	position: absolute;
	inset: 0;
	overflow: hidden;
	will-change: opacity;
}

.stage-background img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bus-lit {
	animation:
		bus-jitter 0.24s steps(2) infinite,
		bus-breathe 2.6s ease-in-out infinite;
}

.bus-ghost,
.bus-ghost-close {
	opacity: 0;
	animation-duration: 3.5s;
	animation-iteration-count: infinite;
	animation-timing-function: step-end;
}

.bus-ghost {
	animation-name: ghost-flash;
}

.bus-ghost-close {
	animation-name: ghost-close-flash;
}

.curtain {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 50.5%;
	background: var(--bg);
	z-index: 1;
	will-change: transform;
}

.curtain.left {
	left: 0;
}

.curtain.right {
	right: 0;
}

.stage-canvas {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1512px;
	height: 975px;
	transform-origin: center;
	z-index: 2;
}

.stage:not(.ready) .stage-canvas,
.stage:not(.ready) .curtain {
	visibility: hidden;
}

.scene {
	position: absolute;
	top: 0;
	left: 0;
}

[data-scene] {
	will-change: transform, opacity;
}

.stage-canvas [data-scene] {
	transform-origin: top left;
}

#hero-scene > *,
#warning-scene > * {
	position: absolute;
	top: 0;
	left: 0;
}

.hero-logo {
	width: 126px;
	height: 38px;
}

.hero-titles {
	display: contents;
}

.hero-title {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-title.the {
	width: 72px;
	height: 66px;
}

.hero-title.the img {
	width: 57px;
	height: 61px;
	animation: glitch 4.8s 0.4s infinite;
}

.hero-title.haunted {
	width: 305px;
	height: 104px;
}

.hero-title.haunted img {
	width: 283px;
	height: 96px;
	animation: glitch 4.2s infinite;
}

.hero-title.house {
	width: 228px;
	height: 112px;
}

.hero-title.house img {
	width: 195px;
	height: 100px;
	animation: glitch 5.3s 0.8s infinite;
}

.hero-heading {
	width: 311px;
	font-family: var(--mono);
	font-size: 32px;
	line-height: 31px;
	font-weight: 400;
	text-align: center;
	white-space: nowrap;
}

.hero-heading span {
	font: inherit;
	color: inherit;
	animation: text-flicker 6s infinite;
}

.hero-story {
	width: 563px;
	text-align: center;
}

.hero-story p {
	font-weight: 500;
	line-height: 19px;
}

.hero-story p + p {
	margin-top: 19px;
}

.hero-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 246px;
	height: 54px;
	font-family: var(--mono);
	font-size: 24px;
	line-height: 23px;
	background: rgba(0, 0, 0, 0.7);
	border: 1px solid var(--color);
	transition:
		color 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
	color: var(--primary);
	border-color: var(--primary);
	box-shadow: 0 0 24px var(--primary-shadow);
}

.info-bar {
	width: 988px;
	height: 64px;
	display: grid;
	grid-template-columns: 241px 240px 1fr auto;
	align-items: start;
	padding: 14px 13px 0 35px;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(2px);
}

.info-bar dt,
.info-bar dd,
.scroll-link {
	font-family: var(--mono);
	line-height: 16px;
}

.info-bar dt {
	font-size: 13px;
	color: var(--label);
}

.scroll-link {
	align-self: start;
	margin-top: 18px;
	font-size: 13px;
	line-height: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
	animation: nudge 1.8s ease-in-out infinite;
}

.scroll-link:hover {
	color: var(--primary);
}

.ticket-panel {
	width: 1656px;
	height: 898px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 195px;
	isolation: isolate;
}

.ticket-panel::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -1000px;
	right: -1000px;
	background: url("/public/images/background/tickets.webp") center / 1656px auto no-repeat var(--bg);
	z-index: -1;
}

.ticket-panel h2 {
	margin-top: 9px;
	font-family: var(--mono);
	font-size: 32px;
	line-height: 31px;
	font-weight: 400;
	letter-spacing: 0;
}

.tickets {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 33px;
	margin-top: 47px;
}

.ticket-row {
	display: flex;
	gap: 32px;
}

.ticket-row:last-child {
	gap: 30px;
}

.hint {
	margin-top: 46px;
	font-weight: 500;
	line-height: 19px;
	color: var(--soft);
}

.house-model {
	width: 1091px;
}

.warning {
	width: 1067px;
	display: grid;
	grid-template-columns: 296px 295px 248px 228px;
	align-items: start;
}

.warning-title h2 {
	font-family: var(--mono);
	font-size: 39px;
	line-height: 46px;
	font-weight: 400;
	letter-spacing: 2px;
	color: var(--danger);
	text-shadow: 0 0 18px rgba(255, 29, 29, 0.45);
	animation: warning-flicker 3.6s infinite;
}

.warning-title p {
	margin-top: 8px;
	font-family: var(--mono);
	font-size: 19.5px;
	line-height: 22px;
	color: var(--soft);
}

.warning-column {
	padding-top: 7px;
}

.warning-column:nth-child(2) {
	width: 264px;
}

.warning-column:nth-child(3) {
	width: 218px;
}

.warning-column h3 {
	font-family: var(--mono);
	font-size: 14.2px;
	line-height: 16px;
	font-weight: 400;
}

.warning-column p {
	margin-top: 17px;
	font-size: 14.2px;
	line-height: 16px;
	color: var(--soft);
}

.location {
	width: 1515px;
	height: 458px;
}

.location-header {
	position: relative;
	height: 90px;
	padding: 0 200px 0 203px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.location-header h2 {
	font-family: var(--mono);
	font-size: 33.5px;
	line-height: 33px;
	font-weight: 400;
}

.location-header p {
	margin-top: 18px;
	font-weight: 500;
	line-height: 19px;
	color: var(--soft);
}

.location-header .button {
	margin-top: 16px;
}

.map {
	width: var(--stage-viewport, 1515px);
	height: 368px;
	margin-left: calc(759px - var(--stage-viewport, 1515px) / 2);
}

.crt {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 5;
	opacity: 0.12;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
	animation: noise 0.6s steps(6) infinite;
}

.stage-sticky::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	background:
		repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
		radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.7) 100%);
	animation: flicker 5s infinite;
}

.stage-sticky::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 22vh;
	z-index: 4;
	pointer-events: none;
	background: linear-gradient(transparent, rgba(255, 255, 255, 0.035), transparent);
	animation: roll 7s linear infinite;
}

#faq-scene > * {
	position: absolute;
	top: 0;
	left: 0;
}

.faq {
	width: 1071px;
	display: grid;
	grid-template-columns: 337px 1fr;
	align-items: start;
}

.faq-intro .eyebrow {
	color: var(--soft);
	line-height: 16px;
}

.faq-intro h2 {
	margin-top: 8px;
	font-family: var(--mono);
	font-size: 36px;
	line-height: 35px;
	font-weight: 400;
}

.faq-intro p {
	margin-top: 7px;
	font-family: var(--mono);
	line-height: 16px;
	color: var(--soft);
}

.faq-mark img {
	width: 205px;
	height: 287px;
	animation: glitch 6s 1.5s infinite;
}

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.faq-list question-element {
	max-width: 720px;
}

footer {
	padding-bottom: 40px;
}

.footer-visual {
	position: relative;
	height: 348px;
	overflow: hidden;
}

.footer-background {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.85) contrast(1.1);
}

.footer-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0 1px, transparent 1px 3px),
		linear-gradient(var(--bg), transparent 30%, transparent 70%, var(--bg));
}

.footer-title {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.footer-title img:nth-child(1) {
	width: 43px;
	height: 46px;
	animation: glitch 4.8s 0.4s infinite;
}

.footer-title img:nth-child(2) {
	width: 283px;
	height: 96px;
	animation: glitch 4.6s infinite;
}

.footer-title img:nth-child(3) {
	width: 195px;
	height: 100px;
	animation: glitch 5.1s 1.2s infinite;
}

footer .container {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.powered {
	margin-top: 42px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.powered span {
	text-transform: uppercase;
}

.powered .logo {
	width: 72px;
	height: 22px;
}

.socials {
	margin-top: 32px;
	display: flex;
	gap: 11px;
}

.socials img {
	width: 25px;
	height: 25px;
	transition: transform 0.2s ease;
}

.socials a:hover img {
	transform: scale(1.15);
}

.copy {
	margin-top: 64px;
}

.copy span {
	font-size: 12px;
	text-transform: uppercase;
}

@keyframes glitch {
	0%,
	88%,
	100% {
		transform: translate(0, 0);
		filter: none;
		clip-path: none;
	}
	89% {
		transform: translate(-4px, 1px);
		filter: hue-rotate(40deg);
		clip-path: inset(10% 0 55% 0);
	}
	91% {
		transform: translate(4px, -1px);
		clip-path: inset(60% 0 8% 0);
	}
	93% {
		transform: translate(-2px, 0);
		filter: hue-rotate(-30deg);
		clip-path: none;
	}
	95% {
		transform: translate(1px, 0);
		filter: none;
	}
}

@keyframes bus-jitter {
	0% {
		transform: translate(0, 0);
	}
	50% {
		transform: translate(1px, -1px);
	}
	100% {
		transform: translate(-1px, 0);
	}
}

@keyframes bus-breathe {
	0%,
	100% {
		filter: brightness(1);
	}
	40% {
		filter: brightness(1.08);
	}
	62% {
		filter: brightness(0.93);
	}
	64% {
		filter: brightness(1.1);
	}
}

@keyframes ghost-flash {
	0% {
		opacity: 0;
	}
	85.7% {
		opacity: 1;
		transform: translateX(-3px);
	}
	90% {
		opacity: 0;
		transform: none;
	}
}

@keyframes ghost-close-flash {
	0% {
		opacity: 0;
	}
	92.9% {
		opacity: 1;
	}
	95.7% {
		opacity: 1;
		transform: translateX(4px);
	}
	98.6% {
		opacity: 0;
		transform: none;
	}
}

@keyframes text-flicker {
	0%,
	100% {
		opacity: 1;
	}
	47% {
		opacity: 1;
	}
	48% {
		opacity: 0.4;
	}
	49% {
		opacity: 1;
	}
	51% {
		opacity: 0.6;
	}
	52% {
		opacity: 1;
	}
}

@keyframes warning-flicker {
	0%,
	100% {
		opacity: 1;
	}
	70% {
		opacity: 1;
	}
	71% {
		opacity: 0.2;
	}
	72% {
		opacity: 1;
	}
	74% {
		opacity: 0.5;
	}
	75% {
		opacity: 1;
	}
}

@keyframes flicker {
	0%,
	100% {
		opacity: 1;
	}
	32% {
		opacity: 0.92;
	}
	33% {
		opacity: 1;
	}
	66% {
		opacity: 0.85;
	}
	67% {
		opacity: 1;
	}
}

@keyframes roll {
	from {
		transform: translateY(-30vh);
	}
	to {
		transform: translateY(130vh);
	}
}

@keyframes noise {
	0% {
		background-position: 0 0;
	}
	100% {
		background-position: 220px 140px;
	}
}

@keyframes nudge {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(3px);
	}
}

@media only screen and (max-width: 1240px) {
	header > nav {
		padding-inline: 32px;
	}
}

@media only screen and (max-width: 768px), only screen and (max-height: 499px), only screen and (max-aspect-ratio: 21/20) {
	:root {
		--gutter: 34px;
	}

	header {
		height: 66px;
		padding-top: 0;
	}

	header > nav {
		padding-inline: 20px;
	}

	header > nav img.logo {
		width: 94px;
		height: 28px;
	}

	.stage {
		height: auto;
	}

	.stage-sticky {
		position: relative;
		height: auto;
		overflow: visible;
	}

	.stage-sticky::before,
	.stage-sticky::after,
	.crt,
	.curtain,
	.faq-mark,
	.scroll-link {
		display: none;
	}

	.stage-background {
		bottom: auto;
		height: 1008px;
	}

	.stage-background img {
		object-position: center bottom;
	}

	.stage-canvas {
		position: relative;
		top: auto;
		left: auto;
		width: 100%;
		height: auto;
	}

	.scene,
	#hero-scene > *,
	#warning-scene > *,
	#faq-scene > * {
		position: relative;
	}

	#hero-scene {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 129px var(--gutter) 19px;
		text-align: center;
	}

	.hero-logo {
		width: 84px;
		height: 25px;
	}

	.hero-titles {
		margin-top: 14px;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		row-gap: 11px;
	}

	.hero-title,
	.hero-title.the,
	.hero-title.haunted,
	.hero-title.house {
		position: static;
		width: auto;
		height: auto;
	}

	.hero-title.house {
		flex-basis: 100%;
	}

	.hero-title.the img {
		width: 37px;
		height: 40px;
	}

	.hero-title.haunted img {
		width: 188px;
		height: 64px;
	}

	.hero-title.house img {
		width: 129px;
		height: 66px;
	}

	.hero-heading {
		margin-top: 22px;
		width: auto;
		font-size: 24px;
		line-height: 23px;
		white-space: normal;
	}

	.hero-story {
		margin-top: 43px;
		width: 100%;
		text-align: left;
	}

	.hero-cta {
		margin-top: 205px;
		width: 160px;
		height: 43px;
		font-size: 16px;
		line-height: 16px;
	}

	.info-bar {
		margin-top: 67px;
		width: 100%;
		height: auto;
		padding: 0;
		text-align: left;
		grid-template-columns: 1fr minmax(0, 92px);
		column-gap: 16px;
		row-gap: 27px;
		background: none;
		backdrop-filter: none;
	}

	.info-bar dt,
	.info-bar dd {
		font-size: 14px;
		line-height: 14px;
	}

	.ticket-panel {
		width: 100%;
		height: auto;
		padding: 50px var(--gutter) 26px;
	}

	.ticket-panel::before {
		left: 0;
		right: 0;
		background-size: cover;
	}

	.ticket-panel .eyebrow {
		color: var(--soft);
	}

	.ticket-panel h2 {
		font-size: 24px;
		line-height: 23px;
		text-align: center;
	}

	.tickets {
		margin-top: 39px;
		gap: 17px;
	}

	.ticket-row,
	.ticket-row:last-child {
		gap: 14px;
	}

	.ticket-row ticket-element {
		--ticket-width: 55px;
	}

	.hint {
		margin-top: 56px;
		max-width: 200px;
		font-size: 14px;
		line-height: 16px;
		font-weight: 300;
		text-align: center;
	}

	#warning-scene {
		padding-top: 41px;
		overflow: hidden;
	}

	.house-model {
		width: 116.3%;
		margin-left: -8%;
	}

	.warning {
		width: 100%;
		margin-top: -104px;
		padding-inline: var(--gutter);
		grid-template-columns: 1fr;
	}

	.warning-title h2 {
		font-size: 24px;
		line-height: 28px;
		letter-spacing: 1.2px;
	}

	.warning-title p {
		margin-top: 0;
		font-size: 16px;
		line-height: 18px;
	}

	.warning-column:nth-child(n) {
		width: auto;
		padding-top: 0;
		margin-top: 16px;
	}

	.warning-column:nth-child(2) {
		margin-top: 23px;
	}

	.warning-column h3 {
		font-size: 14px;
		line-height: 15px;
	}

	.warning-column p {
		margin-top: 9px;
		font-size: 14px;
		line-height: 15px;
		font-weight: 500;
	}

	.location {
		width: 100%;
		height: auto;
		margin-top: 85px;
		padding-top: 29px;
		border-top: 1px solid #525252;
	}

	.location-header {
		height: auto;
		padding: 0 var(--gutter);
		flex-direction: column;
		align-items: flex-start;
	}

	.location-header h2 {
		font-size: 24px;
		line-height: 23px;
	}

	.location-header p {
		margin-top: 10px;
		max-width: 240px;
		font-size: 14px;
		line-height: 16px;
	}

	.location-header .button {
		margin-top: 10px;
		width: 205px;
		height: 41px;
		font-size: 16px;
	}

	.map {
		margin-top: 18px;
		margin-left: 0;
		width: 100%;
		height: 313px;
	}

	#faq-scene {
		padding: 53px var(--gutter) 0;
	}

	.hero-story,
	.info-bar,
	.warning,
	.faq {
		max-width: 720px;
		margin-inline: auto;
	}

	.warning {
		max-width: calc(720px + var(--gutter) * 2);
	}

	.location-header {
		padding-inline: max(var(--gutter), calc((100% - 720px) / 2));
	}

	.faq {
		width: 100%;
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.faq-intro .eyebrow {
		color: var(--soft);
	}

	.faq-intro h2 {
		margin-top: 10px;
	}

	.faq-intro p {
		margin-top: 5px;
	}

	.faq-list {
		gap: 26px;
		--faq-size: 14px;
		--faq-line: 16px;
		--faq-weight: 500;
		--faq-number-width: 25px;
	}

	footer {
		margin-top: 120px;
		padding-bottom: 41px;
	}

	.footer-visual {
		height: 150px;
	}

	.footer-title {
		gap: 4px;
	}

	.footer-title img:nth-child(1) {
		width: 20px;
		height: 21px;
	}

	.footer-title img:nth-child(2) {
		width: 127px;
		height: 43px;
	}

	.footer-title img:nth-child(3) {
		width: 88px;
		height: 45px;
	}

	.powered {
		margin-top: 47px;
	}

	.powered span {
		font-size: 14px;
	}

	.socials {
		margin-top: 33px;
	}

	.copy {
		margin-top: 39px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
	}
}
