:root {
	--phage-home-forest: var(--phage-color-forest);
	--phage-home-parchment: var(--phage-color-parchment);
	--phage-home-sand: #efe6d2;
	--phage-home-mist: #e6ede4;
	--phage-home-gold: var(--phage-color-gold);
	--phage-home-terracotta: var(--phage-color-terracotta);
	--phage-home-ink: #173322;
	--phage-hero-card-overlap: clamp(2.75rem, 4vw, 4.5rem);
}

.home #main-content {
	overflow: clip;
}

.home .phage-home-hero {
	background: var(--phage-home-forest);
	overflow: clip;
	padding: 0;
}

.home .phage-hero-stage {
	max-width: none;
	padding: 0;
	position: relative;
	width: 100%;
}

.home .phage-hero-stage > .et_pb_column {
	position: relative;
	z-index: auto !important;
}

.home .phage-parallax-module,
.home .phage-parallax-module .et_pb_code_inner,
.home .phage-parallax-scene {
	display: block;
	height: min(calc(100vh - 84px), max(700px, 63vw));
	height: min(calc(100svh - 84px), max(700px, 63vw));
	margin: 0;
	min-height: 590px;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.home .phage-hero-stage > .et_pb_column > .phage-parallax-module {
	margin-bottom: 0 !important;
	z-index: 0;
}

.home .phage-parallax-layer {
	display: block;
	height: calc(100% + 128px);
	inset: -64px;
	max-width: none;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
	position: absolute;
	width: calc(100% + 128px);
}

.home .phage-parallax-layer--dragon {
	z-index: 0;
}

.home .phage-parallax-layer--jester {
	transform: scale(0.7);
	transform-origin: left bottom;
	z-index: 1;
}

.home .phage-parallax-layer--rider {
	z-index: 1;
}

.home.phage-motion-ready .phage-home-hero.phage-hero-motion-active .phage-parallax-layer {
	transform-origin: center;
	will-change: transform;
}

.home.phage-motion-ready .phage-home-hero.phage-hero-motion-active .phage-parallax-layer--jester {
	transform-origin: left bottom;
}

.home.phage-motion-ready .phage-home-hero.phage-hero-motion-active .phage-chronicle-card {
	will-change: transform;
}

.home .phage-chronicle-card {
	background: rgb(248 244 232 / 94%);
	border: 1px solid rgb(5 47 22 / 18%);
	border-radius: var(--phage-radius);
	border-top: 4px double var(--phage-home-gold);
	bottom: clamp(2rem, 7vw, 6rem);
	box-shadow: 0 0.5rem 0.5rem rgb(5 47 22 / 16%);
	left: clamp(2rem, 7vw, 7rem);
	margin: 0;
	margin-bottom: 0 !important;
	max-width: 760px;
	padding: clamp(2.5rem, 4vw, 4rem) clamp(1.5rem, 4vw, 3.75rem) clamp(6.5rem, 10vw, 7.5rem);
	position: absolute;
	width: min(78vw, 760px);
	z-index: 4;
}

.home .phage-chronicle-card h1 {
	font-size: clamp(2.1rem, 3.2vw, 3.4rem);
	letter-spacing: -0.035em;
	margin: 0 0 0.3em;
	max-width: none;
}

.home .phage-chronicle-card p:last-child {
	color: var(--phage-home-ink);
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	margin-bottom: 0;
	max-width: 48ch;
}

.home .phage-hero-button {
	bottom: clamp(4rem, 10vw, 8rem);
	left: clamp(3.5rem, 11vw, 10.75rem);
	margin: 0;
	position: absolute;
	z-index: 5;
}

.home .phage-kicker {
	color: var(--phage-home-terracotta);
	font-family: var(--phage-font-display);
	font-size: 1rem;
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.3;
	margin-bottom: 1rem;
	text-transform: none;
}

.home .phage-home-section {
	background: var(--phage-home-parchment);
	overflow: clip;
	padding: clamp(4rem, 8vw, 7rem) 0;
	position: relative;
}

.home .phage-home-section .et_pb_row {
	padding: 0;
	position: relative;
	z-index: 1;
}

.home .phage-home-section::after {
	background: linear-gradient(90deg, transparent, rgb(213 159 35 / 7%));
	content: "";
	inset: 0 0 0 auto;
	pointer-events: none;
	position: absolute;
	width: min(38vw, 34rem);
	z-index: 0;
}

.home .phage-club {
	--phage-section-surface: var(--phage-home-parchment);
}

.home .phage-event {
	--phage-section-surface: var(--phage-home-forest);
}

.home .phage-larp {
	--phage-section-surface: var(--phage-home-sand);
}

.home .phage-contact {
	--phage-section-surface: var(--phage-home-mist);
}

.home .phage-club,
.home .phage-event,
.home .phage-larp,
.home .phage-contact {
	overflow: visible;
}

.home .phage-club,
.home .phage-larp {
	--phage-section-edge: url("assets/generated/edges/phage-edge-torn-parchment.png");
}

.home .phage-event,
.home .phage-contact {
	--phage-section-edge: url("assets/generated/edges/phage-edge-landscape-grunge.png");
}

@supports ((mask-image: url("assets/generated/edges/phage-edge-landscape-grunge.png")) or (-webkit-mask-image: url("assets/generated/edges/phage-edge-landscape-grunge.png"))) {
	.home .phage-home-hero::after {
		-webkit-mask-image: url("assets/generated/edges/phage-edge-landscape-grunge.png");
		-webkit-mask-position: center bottom;
		-webkit-mask-repeat: no-repeat;
		-webkit-mask-size: 100% 180%;
		background-color: var(--phage-home-parchment);
		background-image: url("assets/generated/phage-paper-texture.webp");
		background-blend-mode: multiply;
		background-position: center;
		background-repeat: no-repeat;
		background-size: cover;
		content: "";
		height: clamp(48px, 4vw, 64px);
		inset: auto 0 0;
		mask-image: url("assets/generated/edges/phage-edge-landscape-grunge.png");
		mask-position: center bottom;
		mask-repeat: no-repeat;
		mask-size: 100% 180%;
		pointer-events: none;
		position: absolute;
		z-index: 3;
	}

	.home .phage-event::before,
	.home .phage-larp::before,
	.home .phage-contact::before {
		-webkit-mask-image: var(--phage-section-edge);
		-webkit-mask-position: center bottom;
		-webkit-mask-repeat: no-repeat;
		-webkit-mask-size: 100% 100%;
		background: var(--phage-section-surface);
		content: "";
		height: clamp(22px, 2.8vw, 42px);
		inset: auto 0 100%;
		mask-image: var(--phage-section-edge);
		mask-position: center bottom;
		mask-repeat: no-repeat;
		mask-size: 100% 100%;
		pointer-events: none;
		position: absolute;
		z-index: 1;
	}

	.home #main-footer {
		position: relative;
	}

	.home #main-footer::before {
		-webkit-mask-image: url("assets/generated/edges/phage-edge-landscape-grunge.png");
		-webkit-mask-position: center bottom;
		-webkit-mask-repeat: no-repeat;
		-webkit-mask-size: 100% 100%;
		background: var(--phage-home-mist);
		content: "";
		height: clamp(22px, 2.8vw, 42px);
		inset: 0 0 auto;
		mask-image: url("assets/generated/edges/phage-edge-landscape-grunge.png");
		mask-position: center bottom;
		mask-repeat: no-repeat;
		mask-size: 100% 100%;
		pointer-events: none;
		position: absolute;
		transform: scaleY(-1);
		z-index: 1;
	}
}

.home .phage-event::after {
	background: linear-gradient(90deg, transparent, rgb(213 159 35 / 9%));
}

.home .phage-larp::after {
	background: linear-gradient(90deg, transparent, rgb(189 75 17 / 6%));
}

.home .phage-contact::after {
	background: linear-gradient(90deg, transparent, rgb(5 47 22 / 7%));
}

.home .phage-chapter-row {
	align-items: center;
	display: flex;
	gap: clamp(2.5rem, 6vw, 5.5rem);
	max-width: 1180px;
}

.home .phage-chapter-row > .et_pb_column {
	margin: 0 !important;
	width: auto !important;
}

.home .phage-chapter-copy {
	flex: 1 1 58%;
}

.home .phage-chapter-visual {
	flex: 0 1 38%;
}

.home .phage-club .et_pb_text,
.home .phage-larp .et_pb_text,
.home .phage-event .et_pb_text {
	max-width: 62ch;
	text-align: left;
}

.home .phage-club h2,
.home .phage-club p,
.home .phage-event h2,
.home .phage-event p,
.home .phage-larp h2,
.home .phage-larp p {
	text-align: left;
}

.home .phage-contact .et_pb_text {
	margin-left: auto;
	margin-right: auto;
	max-width: 820px;
	text-align: center;
}

.home .phage-home-section h2 {
	font-size: clamp(2.15rem, 4.5vw, 4.25rem);
	letter-spacing: -0.025em;
	margin-bottom: 0.45em;
}

.home .phage-home-section p:not(.phage-kicker, .phage-event-meta) {
	color: var(--phage-home-ink);
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.home .phage-text-link {
	border-bottom: 2px solid var(--phage-home-gold);
	color: var(--phage-home-forest);
	display: inline-block;
	font-weight: 700;
	margin-top: 1rem;
	padding-bottom: 0.15rem;
}

.home .phage-text-link::after {
	border-right: 2px solid currentcolor;
	border-top: 2px solid currentcolor;
	content: "";
	display: inline-block;
	height: 0.45em;
	margin-left: 0.55em;
	transform: rotate(45deg);
	transition: transform 160ms var(--phage-ease-out);
	vertical-align: 0.05em;
	width: 0.45em;
}

.home .phage-divider {
	clip-path: inset(0);
	margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
	max-width: 360px;
}

.home .phage-section-divider {
	left: 50%;
	margin: 0;
	padding: 0;
	position: absolute !important;
	top: 0;
	transform: translate(-50%, -50%);
	width: 100%;
	z-index: 3 !important;
}

.home .phage-section-divider .phage-divider {
	margin: 0 auto;
}

.home .phage-divider--dragon {
	max-width: 680px;
}

.home .phage-divider--helmet {
	max-width: 104px;
}

.home .phage-divider--horse {
	max-width: 112px;
}

.home .phage-chapter-art {
	background: var(--phage-home-forest);
	border: 1px solid rgb(213 159 35 / 70%);
	border-radius: var(--phage-radius);
	box-shadow: 0 0.5rem 0.5rem rgb(5 47 22 / 12%);
	isolation: isolate;
	overflow: hidden;
	padding: 0.45rem;
	position: relative;
}

.home .phage-chapter-art .et_pb_image_wrap {
	border-radius: calc(var(--phage-radius) - 2px);
	display: block;
	overflow: hidden;
	width: 100%;
}

.home .phage-chapter-art img {
	aspect-ratio: 3 / 2;
	border-radius: calc(var(--phage-radius) - 2px);
	display: block;
	margin: auto;
	max-height: none;
	object-fit: cover;
	transform-origin: center;
	transition: transform 240ms var(--phage-ease-in-out) !important;
	width: 100%;
}

.home:not(.et-fb) .phage-chapter-art img {
	/* Reserve the full frame before lazy image decoding, across Divi's cascade. */
	width: 100% !important;
}

.home .phage-chapter-row:has(a:focus-visible) .phage-chapter-art {
	border-color: var(--phage-home-gold);
}

@media (hover: hover) and (pointer: fine) {
	.home .phage-text-link:hover::after {
		transform: translate3d(4px, 0, 0) rotate(45deg);
	}

	.home .phage-chapter-row:has(a:hover) .phage-chapter-art img {
		transform: scale(1.025);
	}
}

.home .phage-larp-art {
	box-shadow: 0 0.5rem 0.5rem rgb(5 47 22 / 12%);
}

.home .phage-event {
	background: var(--phage-home-forest);
}

.home .phage-event .phage-chapter-row {
	border: 1px solid rgb(213 159 35 / 70%);
	border-radius: var(--phage-radius);
	box-shadow: 0 0.5rem 0.5rem rgb(0 0 0 / 14%);
	max-width: 1180px;
	padding: clamp(2rem, 4vw, 4rem);
	position: relative;
	z-index: 1;
}

.home .phage-event .phage-chapter-row::before {
	border: 1px solid rgb(213 159 35 / 42%);
	border-radius: var(--phage-radius);
	content: "";
	inset: -13px 13px 13px -13px;
	outline: 1px solid rgb(248 244 232 / 20%);
	outline-offset: 10px;
	pointer-events: none;
	position: absolute;
	z-index: -1;
}

.home .phage-event h2,
.home .phage-event p,
.home .phage-event .phage-kicker {
	color: var(--phage-home-parchment);
}

.home .phage-event .phage-kicker {
	color: var(--phage-home-gold);
}

.home .phage-event .et_pb_text p:not(.phage-kicker, .phage-event-meta) {
	color: var(--phage-home-parchment);
}

.home .phage-event-meta {
	align-items: baseline;
	border-bottom: 1px solid rgb(248 244 232 / 24%);
	border-top: 1px solid rgb(248 244 232 / 24%);
	display: flex;
	gap: 1.5rem;
	justify-content: space-between;
	margin: 2rem 0;
	padding: 1rem 0;
}

.home .phage-event-meta span {
	text-align: right;
}

.home .phage-event-button {
	margin-top: 1.5rem;
}

.home .phage-event-art {
	background: var(--phage-home-gold);
	border-color: rgb(248 244 232 / 45%);
	box-shadow: 0 0.5rem 0.5rem rgb(0 0 0 / 18%);
}

.home .phage-larp {
	background: var(--phage-home-sand);
}

.home .phage-club,
.home .phage-larp {
	background-blend-mode: multiply;
	background-image: url("assets/generated/phage-paper-texture.webp");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.home .phage-larp .phage-chapter-copy {
	padding-left: clamp(1.5rem, 4vw, 4rem);
	position: relative;
}

.home .phage-larp-button {
	margin-top: 1.5rem;
}

.home .phage-contact {
	background: var(--phage-home-mist);
	border-top: 1px solid rgb(5 47 22 / 18%);
}

.home .phage-contact .et_pb_button_module_wrapper {
	text-align: center;
}

.home .phage-contact-button {
	margin-top: 1.5rem;
}

.home.phage-motion-ready .phage-home-section .et_pb_column > .et_pb_module {
	opacity: 1;
	transform: none;
	transition: opacity 720ms var(--phage-ease-out) 50ms, transform 760ms var(--phage-ease-out) 50ms;
}

.home.phage-motion-ready .phage-home-section .et_pb_column > .et_pb_module:nth-child(2) {
	transition-delay: 110ms;
}

.home.phage-motion-ready .phage-home-section:not(.is-visible) .et_pb_column > .et_pb_module {
	opacity: 0;
}

.home.phage-motion-ready .phage-club:not(.is-visible) .phage-chapter-copy > .et_pb_module {
	transform: translate3d(-56px, 20px, 0);
}

.home.phage-motion-ready .phage-event:not(.is-visible) .phage-chapter-copy > .et_pb_module {
	transform: translate3d(0, 48px, 0);
}

.home.phage-motion-ready .phage-larp:not(.is-visible) .phage-chapter-copy > .et_pb_module {
	transform: translate3d(56px, 20px, 0);
}

.home.phage-motion-ready .phage-contact:not(.is-visible) .et_pb_text {
	transform: translate3d(0, 40px, 0) scale(0.97);
}

.home.phage-motion-ready .phage-contact:not(.is-visible) .phage-contact-button {
	transform: translate3d(0, 26px, 0);
}

.home.phage-motion-ready .phage-home-section .et_pb_column > .phage-chapter-art {
	clip-path: inset(0);
	transition: clip-path 900ms var(--phage-ease-out) 50ms, opacity 720ms var(--phage-ease-out) 50ms, transform 820ms var(--phage-ease-out) 50ms;
}

.home.phage-motion-ready .phage-club .phage-chapter-art,
.home.phage-motion-ready .phage-event .phage-chapter-art {
	transform-origin: right center;
}

.home.phage-motion-ready .phage-club:not(.is-visible) .phage-chapter-art,
.home.phage-motion-ready .phage-event:not(.is-visible) .phage-chapter-art {
	clip-path: inset(0 0 0 100%);
	transform: translate3d(64px, -8px, 0) scale(0.92);
}

.home.phage-motion-ready .phage-larp .phage-chapter-art {
	transform-origin: left center;
}

.home.phage-motion-ready .phage-larp:not(.is-visible) .phage-chapter-art {
	clip-path: inset(0 100% 0 0);
	transform: translate3d(-72px, 8px, 0) scale(0.94);
}

.home.phage-motion-ready .phage-divider {
	clip-path: inset(0 100% 0 0);
	transition: clip-path 800ms var(--phage-ease-out) 110ms, opacity 620ms var(--phage-ease-out) 110ms;
}

.home.phage-motion-ready .phage-home-section.is-visible .phage-divider {
	clip-path: inset(0);
}

.home .phage-home-section a:focus-visible {
	outline: 4px solid var(--phage-focus-on-light);
	outline-offset: 4px;
}

.home .phage-home-hero a:focus-visible,
.home .phage-event a:focus-visible {
	outline: 4px solid var(--phage-focus-on-dark);
	outline-offset: 4px;
}

.home .phage-home-hero a.et_pb_button:focus-visible,
.home .phage-home-section a.et_pb_button:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 7px var(--phage-home-forest) !important;
	outline: 4px solid var(--phage-home-gold) !important;
	outline-offset: 4px !important;
	transition: none !important;
}

@media (min-width: 768px) {
	.home .phage-chronicle-card h1 {
		white-space: nowrap;
	}

	.home .phage-chapter-art img {
		aspect-ratio: 1 / 1;
	}

	.home .phage-home-hero {
		overflow: visible;
		position: relative;
	}

	.home .phage-chronicle-card {
		bottom: calc(-1 * var(--phage-hero-card-overlap));
	}

	.home .phage-hero-button {
		bottom: calc(2rem - var(--phage-hero-card-overlap));
	}

	.home .phage-club {
		padding-top: calc(clamp(4rem, 8vw, 7rem) + var(--phage-hero-card-overlap));
	}
}

@media (min-width: 1600px) {
	.home .phage-chronicle-card h1 {
		font-size: 3.4rem;
	}
}

@media (max-width: 980px) {
	.home .phage-parallax-module,
	.home .phage-parallax-module .et_pb_code_inner,
	.home .phage-parallax-scene {
		height: 700px;
		min-height: 0;
	}

	.home .phage-chronicle-card {
		width: min(86vw, 700px);
	}

	.home .phage-chapter-row {
		gap: 2.5rem;
	}
}

@media (max-width: 767px) {
	.home .phage-home-hero {
		background: var(--phage-home-parchment);
	}

	.home .phage-home-hero::after,
	.home .phage-event::before,
	.home .phage-larp::before,
	.home .phage-contact::before,
	.home #main-footer::before {
		-webkit-mask-size: 1536px 100%;
		mask-size: 1536px 100%;
	}

	.home .phage-home-hero::after {
		-webkit-mask-size: 1536px 180%;
		mask-size: 1536px 180%;
	}

	.home .phage-hero-stage {
		width: 100%;
	}

	.home .phage-parallax-module,
	.home .phage-parallax-module .et_pb_code_inner,
	.home .phage-parallax-scene {
		aspect-ratio: auto;
		height: clamp(300px, 82vw, 340px);
		min-height: 0;
	}

	.home .phage-parallax-layer {
		height: 100%;
		inset: 0;
		object-position: 20% center;
		width: 100%;
	}

	.home .phage-chronicle-card,
	.home .phage-hero-button {
		bottom: auto;
		filter: none;
		left: auto;
		position: relative;
		top: auto;
		width: auto;
	}

	.home .phage-chronicle-card {
		border-top-width: 4px;
		box-shadow: none;
		margin: 0 min(1.5rem, 6vw);
		max-width: none;
		padding: 1.75rem min(1.5rem, 6vw);
	}

	.home .phage-chronicle-card h1 {
		font-size: clamp(2.15rem, 10vw, 3.1rem);
	}

	.home .phage-hero-button {
		margin: 1.5rem min(3rem, 12vw) 3.5rem;
	}

	/* Keep enlarged text readable: horizontal gutters follow the viewport,
	 * rather than consuming the reading column when the root font grows. */
	.home .phage-event .phage-chapter-row {
		padding-inline: min(2rem, 8vw);
	}

	.home .phage-home-section {
		padding: 3.5rem 0;
	}

	.home .phage-divider--dragon {
		max-width: 300px;
	}

	.home .phage-divider--helmet {
		max-width: 76px;
	}

	.home .phage-divider--horse {
		max-width: 82px;
	}

	.home .phage-chapter-row {
		align-items: stretch;
		flex-direction: column;
		gap: 2.5rem;
	}

	.home .phage-chapter-row > .et_pb_column {
		width: 100% !important;
	}

	.home .phage-club .phage-chapter-visual,
	.home .phage-event .phage-chapter-visual {
		order: -1;
	}

	.home .phage-chapter-art {
		margin: auto;
		max-width: 540px;
	}

	.home .phage-event-art {
		max-width: 540px;
	}

	.home .phage-larp .phage-chapter-copy {
		padding-left: min(1.5rem, 6vw);
	}

	.home .phage-event-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.35rem;
	}

	.home .phage-event-meta span {
		text-align: left;
	}

	.home .phage-contact .et_pb_text p:not(.phage-kicker) {
		text-align: center;
	}
}

@media (max-width: 767px), (pointer: coarse), (prefers-reduced-motion: reduce) {
	.home.phage-motion-ready .phage-parallax-layer,
	.home.phage-motion-ready .phage-chronicle-card,
	.home.phage-motion-ready .phage-home-section,
	.home.phage-motion-ready .phage-home-section .et_pb_column > .et_pb_module {
		opacity: 1;
		transform: none;
		transition: none;
		will-change: auto;
	}

	.home.phage-motion-ready .phage-chapter-art,
	.home.phage-motion-ready .phage-divider,
	.home.phage-motion-ready .phage-section-divider .phage-divider {
		clip-path: inset(0);
		transform: none;
		transition: none;
	}

	.home.phage-motion-ready .phage-parallax-layer--jester {
		transform: scale(0.7);
		transform-origin: left bottom;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home *,
	.home *::before,
	.home *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}

	.home .phage-text-link::after {
		transform: rotate(45deg) !important;
	}

	.home .phage-chapter-art img {
		transform: none !important;
		transition: none !important;
	}
}

.home.et-fb.phage-motion-ready .phage-parallax-layer,
.home.et-fb.phage-motion-ready .phage-chronicle-card,
.home.et-fb.phage-motion-ready .phage-home-section,
.home.et-fb.phage-motion-ready .phage-home-section .et_pb_column > .et_pb_module {
	opacity: 1;
	transform: none;
	transition: none;
	will-change: auto;
}

.home.et-fb.phage-motion-ready .phage-parallax-layer--jester {
	transform: scale(0.7);
	transform-origin: left bottom;
}

.home.et-fb.phage-motion-ready .phage-chapter-art,
.home.et-fb.phage-motion-ready .phage-divider,
.home.et-fb.phage-motion-ready .phage-section-divider .phage-divider {
	clip-path: inset(0);
	transform: none;
	transition: none;
}

.home.et-fb .phage-section-divider {
	left: auto;
	position: relative !important;
	top: auto;
	transform: none;
}
