/* Art behind a section title: the serpent, a chart wheel, or one very large line icon */

.section--art {
	position: relative;
	overflow: clip;
	isolation: isolate;
}

.art {
	position: absolute;
	z-index: -1;
	pointer-events: none;
	translate: 0 calc(var(--p, 0) * var(--float, 46px));
}

.art--ring {
	right: max(-9vw, -140px);
	top: clamp(-70px, -4vw, -20px);
	width: min(66vw, 660px);
	aspect-ratio: 1;
	opacity: .2;
	-webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 96%);
	mask-image: linear-gradient(to bottom, #000 40%, transparent 96%);
}

:root[data-theme="light"] .art--ring {
	opacity: .3;
}

.art--ring img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.art--wheel {
	right: max(-12vw, -200px);
	top: clamp(-120px, -7vw, -40px);
	width: min(78vw, 760px);
	aspect-ratio: 1;
	opacity: .3;
	filter: var(--wheel-filter);
	mix-blend-mode: var(--wheel-blend);
	-webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 92%), linear-gradient(to bottom, #000 30%, transparent 62%);
	mask-image: radial-gradient(closest-side, #000 30%, transparent 92%), linear-gradient(to bottom, #000 30%, transparent 62%);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

.art--wheel.art--dark {
	filter: var(--wheel-filter-alt);
}

.art--wheel img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.art--glyph {
	right: clamp(-40px, 3vw, 80px);
	top: clamp(10px, 3vw, 56px);
	width: min(52vw, 440px);
	aspect-ratio: 1;
	color: color-mix(in srgb, var(--gold) 30%, transparent);
	-webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 96%);
	mask-image: linear-gradient(to bottom, #000 40%, transparent 96%);
}

.art--glyph .icon {
	width: 100%;
	height: 100%;
	stroke-width: .2;
}

@media (max-width: 640px) {
	.art--ring {
		right: -34vw;
		width: 110vw;
	}

	.art--wheel {
		right: -40vw;
		width: 125vw;
		opacity: .4;
	}

	.art--glyph {
		right: -14vw;
		width: 78vw;
	}
}

/* I. About: the portrait, the mark with the school's name, and his own words */

.home-about {
	align-items: start;
	row-gap: 44px;
	padding-top: clamp(32px, 4.4vw, 64px);
}

.home-about__portrait {
	position: relative;
	grid-column: 1 / span 4;
}

.home-about__portrait::before {
	content: "";
	position: absolute;
	inset: 16px -16px -16px 16px;
	z-index: -1;
	border: 1px solid var(--gold-soft);
	transition: inset 1.4s var(--ease) .3s;
}

.js .home-about__portrait:not(.is-in)::before {
	inset: 0;
}

.home-about__portrait .frame {
	border: 1px solid var(--line);
}

.home-about__portrait figcaption {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px 14px;
	margin-top: 30px;
}

.home-about__text {
	grid-column: 6 / -1;
}

.home-about .lockup {
	margin-bottom: clamp(24px, 3vw, 40px);
}

.home-about__lead {
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(1.5rem, 2.7vw, 2.35rem);
	line-height: 1.22;
	letter-spacing: -.012em;
	max-width: 30ch;
	text-wrap: pretty;
}

.home-about__cols {
	margin-top: clamp(28px, 3.4vw, 48px);
	max-width: none;
	columns: 2;
	column-gap: clamp(24px, 3vw, 48px);
	color: var(--bone-2);
	font-size: 1.0625rem;
}

.home-about__cols > * {
	break-inside: avoid;
}

.home-about__cols > * + * {
	margin-top: 1em;
}

@media (max-width: 900px) {
	.home-about__portrait {
		grid-column: 1 / span 5;
	}

	.home-about__text {
		grid-column: 7 / -1;
	}

	.home-about__cols {
		columns: 1;
	}
}

@media (max-width: 700px) {
	.home-about__portrait {
		grid-column: 1 / -1;
		width: min(100% - 16px, 420px);
	}

	.home-about__text {
		grid-column: 1 / -1;
	}
}

.home-note {
	margin-top: clamp(24px, 3vw, 40px);
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.0625rem;
}

/* IV. Readings: the twelve signs cross the blue above and below the prices */

.home-readings {
	padding-block: 0;
}

.home-readings > .wrap {
	padding-block: clamp(20px, 3vw, 44px);
}

/* Room is left under the upper row and over the lower one for the name that appears, and for the sign growing */

.zodiac {
	position: relative;
	overflow: hidden;
	padding: 30px 0 76px;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.zodiac--foot {
	padding: 76px 0 30px;
}

.zodiac__track {
	display: flex;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zodiac__sign {
	position: relative;
	display: grid;
	place-items: center;
	width: clamp(54px, 5.4vw, 72px);
	aspect-ratio: 1;
	margin-right: clamp(20px, 3.2vw, 52px);
	border: 1px solid var(--line-2);
	border-radius: 50%;
	color: var(--gold);
	cursor: help;
	transition: color var(--fast) ease, background-color var(--mid) ease, border-color var(--fast) ease, scale var(--mid) var(--ease);
}

.zodiac__sign .icon {
	width: clamp(24px, 2.5vw, 32px);
	height: clamp(24px, 2.5vw, 32px);
}

.zodiac__sign:hover,
.zodiac__sign:focus-visible {
	border-color: var(--gold);
	background: var(--gold);
	color: #000;
	scale: 1.14;
}

.zodiac__name {
	position: absolute;
	left: 50%;
	top: calc(100% + 12px);
	display: grid;
	gap: 2px;
	translate: -50% 5px;
	opacity: 0;
	white-space: nowrap;
	text-align: center;
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--bone);
	pointer-events: none;
	transition: opacity var(--fast) ease, translate var(--mid) var(--ease);
}

.zodiac__name small {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 400;
	font-size: .8125rem;
	letter-spacing: 0;
	text-transform: none;
	color: var(--gold-pale);
}

.zodiac--foot .zodiac__name {
	top: auto;
	bottom: calc(100% + 12px);
}

.zodiac__sign:hover .zodiac__name,
.zodiac__sign:focus-visible .zodiac__name {
	opacity: 1;
	translate: -50% 0;
}

/* The name is set at the size it had before the sign grew */

.zodiac__sign:hover .zodiac__name,
.zodiac__sign:focus-visible .zodiac__name {
	scale: .88;
}

/* V. The book: film behind the section, the wheel from its cover turning behind a book with some thickness to it */

.home-bookwrap {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--black);
	color: var(--bone);
}

.home-bookwrap__film {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: calc(var(--film-opacity) * .78);
	filter: var(--film-filter);
	mix-blend-mode: var(--film-blend);
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
	mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

.home-book {
	align-items: center;
	row-gap: 48px;
}

.home-book__cover {
	position: relative;
	grid-column: 2 / span 4;
	perspective: 1500px;
}

.home-book__wheel {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: -1;
	width: 190%;
	aspect-ratio: 1;
	translate: -50% -50%;
	opacity: .5;
	filter: var(--wheel-filter);
	mix-blend-mode: var(--wheel-blend);
	-webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
	pointer-events: none;
}

.home-book__wheel img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
	.home-book__cover:hover .book3d {
		transform: rotateY(-6deg);
	}
}

.home-book__text {
	grid-column: 7 / span 6;
}

.home-book__text .opener {
	font-size: clamp(2.6rem, 5.6vw, 4.9rem);
}

@media (max-width: 800px) {
	/* The cover keeps the same left edge as the words under it */
	.home-book__cover {
		grid-column: 1 / -1;
		justify-self: start;
		width: min(64%, 300px);
	}

	.home-book__text {
		grid-column: 1 / -1;
	}
}

/* VI. Watch: the archive is sold properly, the two free channels sit beside it */

.home-watch__deck {
	grid-column: 3 / span 8;
	margin-top: -8px;
}

@media (max-width: 800px) {
	.home-watch__deck {
		grid-column: 1 / -1;
	}
}

.watch {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(16px, 2vw, 28px);
	align-items: stretch;
}

.archive {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: grid;
	align-content: start;
	gap: clamp(20px, 2.4vw, 30px);
	padding: clamp(22px, 3vw, 44px);
	border: 1px solid var(--gold-soft);
	background: linear-gradient(150deg, rgb(33 73 194 / .2), transparent 46%), var(--ink-2);
}

.archive::before {
	content: "";
	position: absolute;
	right: -18%;
	top: -30%;
	z-index: -1;
	width: 70%;
	aspect-ratio: 1;
	background: radial-gradient(closest-side, rgb(212 175 55 / .2), transparent);
}

.archive__kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--gold);
}

.archive__kicker .icon {
	width: 20px;
	height: 20px;
}

.archive__title {
	font-family: var(--display);
	font-stretch: 68%;
	font-weight: 800;
	font-size: clamp(1.9rem, 3.5vw, 3.1rem);
	line-height: .94;
	letter-spacing: -.014em;
	text-transform: uppercase;
	text-wrap: balance;
}

.archive__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: clamp(22px, 2.6vw, 30px) 0 clamp(16px, 2vw, 24px);
	border-block: 1px dashed var(--line-2);
	list-style: none;
}

.archive__stats li {
	display: grid;
	gap: 8px;
	align-content: start;
}

.archive__stats li + li {
	padding-left: 14px;
	border-left: 1px solid var(--line);
}

.stat {
	font-family: var(--display);
	font-stretch: 64%;
	font-weight: 800;
	font-size: clamp(1.5rem, 3vw, 2.75rem);
	line-height: .86;
	letter-spacing: -.02em;
	color: var(--gold);
	font-variant-numeric: lining-nums tabular-nums;
	white-space: nowrap;
}

.archive__points {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--serif);
	font-size: 1.125rem;
	line-height: 1.4;
}

.archive__points li {
	display: grid;
	grid-template-columns: 18px 1fr;
	gap: 12px;
}

.archive__points li::before {
	content: "";
	width: 6px;
	height: 6px;
	margin-top: .55em;
	rotate: 45deg;
	background: var(--gold);
}

.archive__buy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
}

.archive__price {
	font-size: clamp(2.2rem, 3.6vw, 3.2rem);
	line-height: 1;
}

.archive__terms {
	display: grid;
	gap: 2px;
	font-size: var(--t-small);
	color: var(--bone-2);
}

.archive__buy .btn {
	margin-left: auto;
}

.archive__note {
	font-size: var(--t-small);
	line-height: 1.5;
}

.channels {
	display: grid;
	gap: clamp(16px, 2vw, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.channel {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	align-content: space-between;
	gap: 18px;
	height: 100%;
	padding: clamp(20px, 2.4vw, 32px);
	border: 1px solid var(--line-2);
	background: linear-gradient(var(--ink-3), var(--ink-3)) 0 100% / 100% 0 no-repeat, var(--ink-2);
	text-decoration: none;
	transition: border-color var(--fast) ease, background-size .6s var(--ease);
}

.channel:hover,
.channel:focus-visible {
	border-color: var(--gold);
	background-size: 100% 100%, auto;
}

.channel__icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	color: var(--gold);
	transition: background-color var(--mid) ease, color var(--fast) ease, border-color var(--fast) ease;
}

.channel__icon .icon {
	width: 28px;
	height: 28px;
}

.channel:hover .channel__icon,
.channel:focus-visible .channel__icon {
	border-color: var(--gold);
	background: var(--gold);
	color: #000;
}

.channel__tag {
	justify-self: end;
	align-self: start;
	padding: 5px 9px;
	border: 1px solid var(--line-2);
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--bone-2);
}

.channel__body {
	grid-column: 1 / -1;
	display: grid;
	gap: 8px;
}

.channel__name {
	font-family: var(--display);
	font-stretch: 68%;
	font-weight: 700;
	font-size: clamp(1.6rem, 2.6vw, 2.3rem);
	line-height: 1;
	text-transform: uppercase;
	transition: color var(--fast) ease;
}

.channel:hover .channel__name {
	color: var(--gold-pale);
}

.channel__note {
	font-family: var(--serif);
	font-weight: 300;
	font-size: 1.0625rem;
	line-height: 1.4;
	color: var(--bone-2);
}

.channel__go {
	grid-column: 1 / -1;
	justify-self: start;
}

@media (max-width: 900px) {
	.watch {
		grid-template-columns: minmax(0, 1fr);
	}

	.channels {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.channels {
		grid-template-columns: minmax(0, 1fr);
	}

	.archive__stats {
		gap: 10px;
	}

	.archive__stats li + li {
		padding-left: 10px;
	}

	.archive__buy .btn {
		width: 100%;
		margin-left: 0;
	}
}

/* Featured video above the archive. Nothing is fetched from the video host until play is pressed. */

.watch-film {
	position: relative;
	aspect-ratio: 16 / 9;
	max-height: 72svh;
	width: 100%;
	margin-bottom: clamp(16px, 2vw, 28px);
	border: 1px solid var(--line-2);
	background: radial-gradient(ellipse at 50% 60%, rgb(33 73 194 / .28), transparent 70%), var(--ink-2);
}

.watch-film button,
.watch-film iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.watch-film button {
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 14px;
	padding: 24px;
	text-align: center;
}

.watch-film__disc {
	display: grid;
	place-items: center;
	width: clamp(84px, 9vw, 124px);
	aspect-ratio: 1;
	border: 1px solid var(--gold-soft);
	border-radius: 50%;
	color: var(--gold);
	transition: background-color var(--mid) ease, color var(--fast) ease, scale var(--mid) var(--ease);
}

.watch-film__disc .icon {
	width: 46px;
	height: 46px;
}

.watch-film button:hover .watch-film__disc,
.watch-film button:focus-visible .watch-film__disc {
	background: var(--gold);
	color: #000;
	scale: 1.08;
}

.watch-film__go {
	font-family: var(--display);
	font-stretch: 70%;
	font-weight: 700;
	font-size: clamp(1.4rem, 2.4vw, 2rem);
	line-height: 1;
	text-transform: uppercase;
}

.watch-film__host {
	font-size: var(--t-small);
}

/* VII. Support: the ring of an eclipse burns to one side, the ways to give stand in a column */

.home-support {
	display: grid;
	align-items: center;
	min-height: min(92svh, 860px);
	background: var(--black);
	color: var(--bone);
}

.home-support__film {
	position: absolute;
	inset: 0 auto 0 14%;
	z-index: -2;
	width: 124%;
}

.home-support__film video,
.home-support__film img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: var(--film-opacity);
	filter: var(--film-filter);
	mix-blend-mode: var(--film-blend);
}

.home-support__film video {
	opacity: 0;
	transition: opacity 1.4s ease;
}

.home-support__film video.is-playing {
	opacity: min(1, calc(var(--film-opacity) * 1.3));
}

.home-support::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to bottom, var(--black), transparent 18%, transparent 82%, var(--black)),
		linear-gradient(to right, var(--black) 8%, rgb(var(--scrim) / .55) 42%, transparent 66%);
}

.home-support__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(20px, 2.6vw, 32px);
	max-width: 640px;
}

.home-support__inner .opener {
	font-size: clamp(2.8rem, 6.4vw, 5.6rem);
}

.home-support__lead {
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(1.3rem, 2vw, 1.75rem);
	line-height: 1.28;
	letter-spacing: -.008em;
	text-wrap: pretty;
}

.gives {
	display: grid;
	gap: 10px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.give {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 18px;
	min-height: 76px;
	padding: 12px 22px 12px 14px;
	border: 1px solid var(--line-2);
	background: linear-gradient(var(--gold), var(--gold)) 0 0 / 0 100% no-repeat, rgb(var(--scrim) / .5);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	text-decoration: none;
	transition: background-size .6s var(--ease), border-color var(--fast) ease, color var(--mid) ease;
}

.give--first {
	border-color: var(--royal-edge);
	background: linear-gradient(var(--gold), var(--gold)) 0 0 / 0 100% no-repeat, var(--royal);
	color: #f3eee3;
}

.give__icon {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border: 1px solid currentColor;
	border-radius: 50%;
	opacity: .9;
}

.give__icon .icon {
	width: 24px;
	height: 24px;
}

.give__body {
	display: grid;
	gap: 3px;
}

.give__name {
	font-family: var(--display);
	font-stretch: 70%;
	font-weight: 700;
	font-size: clamp(1.35rem, 2vw, 1.7rem);
	line-height: 1;
	text-transform: uppercase;
}

.give__note {
	font-size: var(--t-small);
	opacity: .78;
}

.give__go {
	font-size: 1.35rem;
	transition: translate var(--mid) var(--ease);
}

.give:hover,
.give:focus-visible {
	border-color: var(--gold);
	background-size: 100% 100%, auto;
	color: #000;
}

.give:hover .give__go,
.give:focus-visible .give__go {
	translate: 5px -5px;
}

@media (max-width: 800px) {
	.home-support {
		min-height: 0;
		padding-top: min(74vw, 440px);
	}

	.home-support__film {
		inset: 0 0 auto 0;
		width: 100%;
		height: min(86vw, 520px);
	}

	.home-support::before {
		background: linear-gradient(to bottom, var(--black), transparent 12%, transparent 30%, var(--black) min(80vw, 480px));
	}
}

/* In the dark, the gold dust screens over the symbol wallpaper beneath it */
:root:not([data-theme="light"]) .home-bookwrap__film {
	mix-blend-mode: screen;
	opacity: .9;
}
