html {
	--color-blackish:		#231F20;
	--color-whiteish: 		#e1e1e1;
	--color-whiteish-dim: 	#C1C0C0;
	--color-red: 			#D62200;

    background-color: var(--color-blackish);
	max-width: 100dvw;
	overflow-x: hidden;
}

@media (min-width: 800px) {

    html {
        /*font-size: 18px;*/
    }

}

img {
    max-width: 100%;
}

/***************************************************
Typography
***************************************************/

html {
	color: white;
	font-family: "neue-haas-grotesk-display", sans-serif;
	text-transform: lowercase;
}

h1 {
	color: var(--color-red);
	font-weight: 900;
	font-size: clamp(7.776rem, 0.5293rem + 36.2334vw, 29.6102rem);
	line-height: .75;
	margin: 0;
}

p span {
	font-weight: 600;
}

h2 {
	align-items: end;
	color: var(--color-whiteish);
	display: flex;
	font-size: 2.8rem;
	gap: .5rem;
	line-height: .48;
	text-align: right;
	z-index: 100;
}

h2:before {
	background-color: var(--color-red);
	content: '';
	display: block;
	height: .2rem;
	opacity: .5;
	width: 100%;
}

h2 span {
	position: relative;
}

h2 span span {
	color: var(--color-whiteish-dim);
	display: block;
	z-index: -1;
}

h3 {
	font-size: 2rem;
	line-height: 1;
}

h3 span {
	font-size: 1rem;
	font-weight: 500;
	line-height: .8;
}

h3.y-end span {
	margin-right: 1.1rem;
}

/***************************************************
Header
***************************************************/

header {
	--chip-bounce: linear(0, 0.287 15.7%, 0.441 23.2%, 0.999 44.7%, 0.854 52.3%, 0.82 55.7%, 0.81 59%, 0.818 61.9%, 0.844 65.1%, 0.999 77.4%, 0.974 81.1%, 0.966 84.7%, 0.996 95.4%, 1);
	min-height: 80dvh;
	max-width: 100vw;
	overflow-x: hidden;
}

.hero-text {
	left: -4%;
	position: absolute;
	rotate: 30.59deg;
	top: 7%;
}

header p {
	font-size: clamp(1rem, 0.6235rem + 1.8824vw, 1.8rem);
	letter-spacing: .01em;
	margin-top: 0;
	text-align: right;
}

.chip {
	animation: chip-fall 1s var(--chip-bounce) forwards;
	filter: drop-shadow(1px -2px 2px rgba(0, 0, 0, .5));
	opacity: 0; 
	position: absolute;
	width: 140px;

	@starting-style {
		opacity: 0;
		scale: 7;
		translate: 0 -60dvh;
	}

	@media (min-width: 1000px) {
		width: auto;
	}
}



.chip:first-of-type {
	right: 80dvw;
	top: 78dvh;

	@media (min-width: 1000px) {
		right: 30dvw;
	}
}

.chip:nth-of-type(2) {
	animation-delay: .4s;
	left: calc(100dvw - 160px);
	top: 40dvh;
}

.chip:nth-of-type(3) {
	animation-delay: .8s;
	right: 4rem;
	top: 60dvh;
}

.chip:nth-of-type(4) {
	animation-delay: 1.2s;
	left: calc(100dvw - 120px);
	top: 30dvh;
}

@keyframes chip-fall {
	0% {
		opacity: 0;
		scale: 7;
		translate: 0 -60dvh;
	}

	50% {
		opacity: .8;
	}

	100% {
		opacity: 1;
		rotate: x 180deg;
	}
}

/***************************************************
Info Section
***************************************************/

main {
    letter-spacing: .03em;
    line-height: 1.6;
    margin: 2rem 1rem;
}

.locale {
    margin-top: 2.5rem;
}

@media (min-width: 940px) {

    main {
        margin: 2rem auto;
        padding-inline: 2rem;
    }

    .locale {
        margin-top: initial;
        text-align: right;
    }

}

/*//////////////////////////////////////////
Filters
/////////////////////////////////////////*/

.filters {
	margin-bottom: 4rem;
}

button {
	background-color: transparent;
	border: none;
	color: var(--color-whiteish);
	cursor: pointer;
	display: block;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.5;
	text-align: right;
	text-transform: lowercase;
	width: 100%;
}

button:focus-visible {
	text-decoration: underline;
	outline: none;
}

button[aria-pressed="true"] {
	text-decoration: underline;
}


/*//////////////////////////////////////////
Student Gallery
/////////////////////////////////////////*/

.student-listing {
    text-align: center;
	width: 100%;
}

@media ( min-width: 800px ) {

	.student-listing {
		display: flex;
		flex-direction: row-reverse;
		gap: 2rem;
	}

	.filters {
		text-align: right;
		max-width: 15rem;
	}

	.students {
		flex-grow: 1;
	}

}

.student-listing h2 {
    margin-bottom: 2rem;
}

/* Students */

.students {
	margin-bottom: 6rem;
	min-height: 100dvh;
}

@keyframes flip-in-ver-right {
	0% {
		opacity: 0;
		rotate: y -160deg;
		scale: 1.2;
	}

	100% {
		opacity: 1;
		rotate: y 0;
		scale: 1;
	}
}

.student {
	animation: flip-in-ver-right .5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	animation-timeline: view(block);
	animation-range: entry 20vh 45vh;
	align-items: center;
	background-color: black;
	border-radius: 1rem;
    color: white;
	display: flex;
	flex-direction: column;
	margin: 0 auto 1.5rem;
	max-width: 400px;
	padding: 1rem 0;
	text-decoration: none;
	transition: all .2s ease-out;
}

.student.hide {
	display: none;
}

.student h3 {
	align-items: flex-end;
	display: flex;
	flex-direction: column;
    margin: 1.3rem 0 1rem;
}

/*.student:nth-child(1 of .student-ux) {
	grid-column-start: 1;
}

.student-ux h3 {
	margin-top: 0;
}*/

.student p {
	line-height: 1;
	margin: 0 0 1rem;
}

.student:hover, .student:focus {
	box-shadow: 0 0 0 .75rem white;
	outline: .35rem solid black;
	transform: rotateY('180');
}

@keyframes show {
	0% {
		transform: scale(0);
		width: 0;
		height: 0;
		margin: 0;
	}

	100% {
		transform: scale(1);
	}
}

@keyframes hide {
	0% {
		transform: scale(1);
	}

	100% {
		transform: scale(0);
		width: 0;
		height: 0;
		margin: 0;
	}
}

@media screen and (min-width: 650px) {

	.students {
		display: grid;
		gap: 2.5rem;
		grid-template-columns: repeat(auto-fill, minmax(220px, 400px));
		justify-content: center;
	}

	.student {
		margin: 0;
	}

}