:root {
	--bg: #000000;
	--bg-overlay: rgba(0, 0, 0, 0.8);
	--color: #ffffff;
	--muted: #aaaaaa;
	--subtle: #b1b1b1;
	--label: #9d9494;
	--dim: #585858;
	--line: #262626;
	--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(1172px + 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: 120px;
	display: flex;
	justify-content: center;
	z-index: 20;
	pointer-events: none;
}

header::before {
	content: "";
	position: absolute;
	inset: -4px 0 auto;
	height: 194px;
	background: linear-gradient(#000000 50%, transparent 95%);
	z-index: -1;
}

header > nav {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	pointer-events: auto;
}

header > nav img.logo {
	width: 114px;
	height: 35px;
}

.stage {
	position: relative;
	height: 600vh;
}

.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;
	width: 100%;
	height: 100%;
	object-fit: cover;
	will-change: opacity;
}

.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-title {
	display: flex;
	align-items: center;
	justify-content: center;
}

.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: 293px;
	font-family: var(--mono);
	font-size: 32px;
	line-height: 31px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.8);
	white-space: nowrap;
}

.hero-heading span {
	font: inherit;
	color: inherit;
	animation: text-flicker 6s infinite;
}

.hero-intro,
.hero-story,
.hero-story-end,
.hero-story p,
.hero-story-end p {
	font-family: var(--mono);
	line-height: 16px;
}

.hero-intro {
	width: 299px;
}

.hero-story,
.hero-story p,
.hero-story-end,
.hero-story-end p {
	color: var(--muted);
}

.hero-story {
	width: 299px;
}

.hero-story p + p {
	margin-top: 16px;
}

.hero-story-end {
	width: 357px;
}

.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: 1571px;
	height: 852px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 115px;
	isolation: isolate;
}

.ticket-panel::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -1000px;
	right: -1000px;
	background: url("/public/images/background/tickets.webp") center / 1571px auto no-repeat var(--bg);
	z-index: -1;
}

.ticket-panel h2 {
	margin-top: 24px;
	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-family: var(--mono);
	color: #525252;
}

.house-model {
	width: 1091px;
}

.warning {
	width: 1111px;
	display: grid;
	grid-template-columns: 297px 294px 292px 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(--subtle);
}

.warning-column {
	padding-top: 7px;
}

.warning-column:nth-child(2) {
	width: 255px;
}

.warning-column:nth-child(3) {
	width: 259px;
}

.warning-column h3,
.warning-column p {
	font-family: var(--mono);
	font-size: 14.2px;
	line-height: 16px;
	font-weight: 400;
}

.warning-column p {
	margin-top: 17px;
	color: var(--subtle);
}

.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-family: var(--mono);
	font-size: 16.8px;
	line-height: 16px;
}

.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;
}

#faqs {
	padding: 160px 0 120px;
}

#faqs .container {
	max-width: calc(1111px + var(--padding-container) * 2);
}

#faqs h2 {
	margin: 24px 0 40px;
	font-family: var(--mono);
	font-size: 32px;
	line-height: 31px;
	font-weight: 400;
}

.questions {
	border-top: 1px solid var(--line);
}

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: 14px;
}

.footer-title img:first-child {
	width: 283px;
	height: 96px;
	animation: glitch 4.6s infinite;
}

.footer-title img:last-child {
	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 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) {
	header {
		height: 72px;
	}

	header::before {
		height: 120px;
	}

	header > nav {
		padding-inline: var(--padding-container);
	}

	header > nav img.logo {
		width: 92px;
		height: 28px;
	}

	.stage {
		height: auto;
	}

	.stage-sticky {
		position: relative;
		height: auto;
		overflow: visible;
	}

	.stage-sticky::before,
	.stage-sticky::after,
	.crt,
	.curtain {
		display: none;
	}

	.stage-background {
		height: 100svh;
		min-height: 640px;
	}

	.stage-canvas {
		position: relative;
		top: auto;
		left: auto;
		width: 100%;
		height: auto;
	}

	.scene,
	#hero-scene > *,
	#warning-scene > * {
		position: relative;
	}

	#hero-scene {
		min-height: 100svh;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		gap: 20px;
		padding: 120px var(--padding-container) 32px;
		background: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.75) 70%);
	}

	.hero-title.haunted,
	.hero-title.house {
		width: auto;
		height: auto;
		justify-content: flex-start;
	}

	.hero-title.haunted img {
		width: 212px;
		height: 72px;
	}

	.hero-title.house img {
		width: 146px;
		height: 75px;
	}

	.hero-heading {
		width: auto;
		font-size: 24px;
		line-height: 26px;
		white-space: normal;
	}

	.hero-intro,
	.hero-story,
	.hero-story-end {
		width: 100%;
	}

	.hero-story-end {
		margin-top: -4px;
	}

	.info-bar {
		width: 100%;
		height: auto;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
		padding: 16px;
	}

	.scroll-link {
		display: none;
	}

	.ticket-panel {
		width: 100%;
		height: auto;
		padding: 80px var(--padding-container);
		background-size: cover;
	}

	.ticket-panel::before {
		display: none;
	}

	.ticket-panel h2 {
		font-size: 26px;
		text-align: center;
	}

	.tickets {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px 14px;
		width: 100%;
		max-width: 420px;
	}

	.ticket-row {
		display: contents;
	}

	.hint {
		text-align: center;
	}

	#warning-scene {
		padding: 56px var(--padding-container) 72px;
		overflow: hidden;
	}

	.house-model {
		width: calc(100% + 64px);
		margin-inline: -32px;
	}

	.warning {
		width: 100%;
		margin-top: -32px;
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.warning-column:nth-child(n) {
		width: auto;
		padding-top: 0;
	}

	.warning-column p {
		margin-top: 10px;
	}

	.location {
		width: 100%;
		height: auto;
	}

	.location-header {
		height: auto;
		padding: 0 var(--padding-container) 24px;
		flex-direction: column;
		gap: 20px;
	}

	.location-header h2 {
		font-size: 26px;
	}

	.location-header p {
		margin-top: 12px;
		font-size: 14px;
		line-height: 18px;
	}

	.location-header .button {
		margin-top: 0;
		width: 100%;
		font-size: 18px;
	}

	.map {
		width: 100%;
		height: 300px;
		margin-left: 0;
	}

	#faqs {
		padding: 96px 0 80px;
	}

	#faqs h2 {
		font-size: 26px;
	}

	.footer-visual {
		height: 260px;
	}

	.footer-title img:first-child {
		width: 212px;
		height: 72px;
	}

	.footer-title img:last-child {
		width: 146px;
		height: 75px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
	}
}
