/********** GLOBAL **********/

:root {
	--primary-color: #121212;
	--secondary-color: #eaeaea;
	--accent-color: #161616;
	--accent-color-two: #999999;
	--micro-font: 0.5rem;
	--general-font: 0.6rem;
	--large-font: 0.8rem;
	--general-weight: 400;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
  height: auto;
  overflow-y: auto;
  overscroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  overflow: visible;
}

html {
	text-transform: none;
	font-size: 22px;
	-webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-optical-sizing: auto;
	color: var(--secondary-color);
	background-color: var(--primary-color);
	letter-spacing: 0.01em;
	text-rendering: optimizeLegibility;
	font-variation-settings: 'wght' 400, 'opsz' 16;
	scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}

body::-webkit-scrollbar {
  display: none;
}

main, .row, section, .group, .grid {
	z-index: 1;	
}

.lenis {
  min-height: 100vh;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.page-wrapper {
  min-height: 100%;
  position: relative;
  overflow: visible;
}

main {
	width: 100%;
	/* padding: 0.3rem; */
	min-height: 200vh;
	padding: 0.3rem 0.3rem 0.15rem;
}

div.page-wrapper {
	position: relative;
}

/********** Z-INDEX **********/

.header-items {
	z-index: 1;
}

.bio {	
	z-index: 0;
}

.headers {
	z-index: 500;
}

.header-titles {
	z-index: 1000;
}

div#credits-role p {
	z-index: 1000;
}

/********** TEXT **********/

p {
	font-size: var(--general-font);
	font-weight: var(--general-weight);
}

h1, h2, h3, h4, h5, h6 {
	font-size: var(--general-font);
	font-weight: var(--general-weight);
	margin: 0;
	padding: 0;
}

p, a {
	line-height: 1.2;
}

a {
	display: block;
	position: relative;
	font-size: var(--general-font);
	font-weight: var(--general-weight);
	text-decoration: none;
	text-transform: none;
	color: var(--secondary-color);
	transition: transform 0.1s ease-out, color 0.1s ease;
}

button {
	all: unset;
	display: block;
	font-size: var(--general-font);
	font-weight: var(--general-weight);
	transition: transform 0.1s ease-out, color 0.1s ease;
}

button,
[role="button"] {
	cursor: pointer;
}

a[href]:hover,
button:hover,
[role="button"]:hover {
	color: var(--accent-color-two);
}

a[href]:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
	color: #b5b5b5;
}

span.arrow {
	display: inline-block;
}

span.arrow.rotate-down {
	transform: rotate(0deg);
}

span.arrow.rotate-up {
	transform: rotate(-180deg);
}

/********** IMG **********/

img {
	display: block;
}

.swap-image {
  width: 100%;
  aspect-ratio: 2000 / 1600;
  object-fit: cover;
}

.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

img.high-res {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

img.high-res.loaded {
  opacity: 1;
}

/********** HEADER **********/


div.header-titles {
	position: sticky;
	top: 0;
	background-color: var(--primary-color);
  padding: 0.3rem 0.3rem 0.15rem;
	width: 100%;
	height: 1.05rem;
}

div.header-titles .header-item {
	overflow: visible;
}

div.header-items {
  position: sticky;
  top: 1.05rem;
  left: 0;
  right: 0;
  width: 100%;
  height: 5.05rem;
  padding: 0.3rem 0.3rem 0.15rem;
  pointer-events: auto;
  transform: translateZ(0);
  overflow-x: auto;
}

div.header-item {
	display: flex;
	flex-direction: column;
	min-width: 0;
  overflow: hidden;
}

img.headshot-preview {
  position: fixed;
  transform: translate(-50%, -50%);
  height: 50vh;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.1s ease;
  pointer-events: none;
}

div.main-grid div.elsewhere {
	grid-column: 3 / auto;
}

div.header-items .menu-container {
	grid-column: 6 / auto;
}

div.menu-title {
	align-items: flex-end;
}

div.menu-container {
	display: flex;
	align-items: flex-end;
	text-align: right;
}

div.menu {
	text-align: right;
}

nav {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

nav a:last-child {
	margin-top: 1rem;
}

div.name {
	grid-column: span 2 / auto;
}

/********** BIO **********/

div.bio-panel {
  position: relative;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

div.bio-panel.is-open {
  max-height: calc(100vh - 6.1rem);
  opacity: 1;
}

.bio-toggle {
  width: fit-content;
}

div.header-bio {
	flex: 3;
}

div.header-titles .header-bio, div.header-items .header-bio {
	grid-column: span 2 / auto;
}

div.main-grid .header-bio {
	grid-column: span 2 / auto;
}

div.bio {
  position: relative;
  height: calc(100vh - 6.1rem);
  padding: 0.3rem;
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

div.bio-arrow {
	position: absolute;
	width: 100%;
	bottom: 1rem;
	text-align: center;
	opacity: 1;
	transition: opacity 0.3s ease;
  pointer-events: none;
}

div.bio-arrow.hidden {
  opacity: 0;
}

div.bio p {
  pointer-events: auto;
  font-size: var(--large-font);
  margin-bottom: 0.6rem;
}

div.bio a {
	font-size: var(--large-font);
}

div.bio-item {
  width: 50%;
  pointer-events: auto;
}

div.bio-item a {
	display: inline-block;
}

.mobile-contacts {
	display: none;
}

/********** SECTIONS **********/

section {
	background-color: var(--primary-color);
	position: relative;
	padding-top: 0.15rem;
}

section img {
	width: 100%;
}

/********** GRID **********/

div.group-title {
	padding-bottom: 0.15rem;
}

div.group {
	width: 100%;
	margin-bottom: 3rem;
}

div.grid {
	display: flex;
	text-transform: none;
}

div.row {
	display: grid;
	grid-template-columns: 3fr 4fr 2fr 3fr 1fr 1fr;
	position: relative;
	width: 100%;
	padding-top: 0.15rem;
	padding-bottom: 0.15rem;
	transition: transform 0.1s ease-out, background-color 0.1s ease;
}

div.row:hover:not([class*="headers"]) {
  background-color: var(--accent-color);
}

div.row div.data:last-child {
	text-align: right;
}

div.main-grid {
	display: grid;
	grid-template-columns: 3fr 4fr 2fr 3fr 1fr 1fr;
	width: 100%;
	margin: 0 auto;
}

div.headers {
	position: sticky;
	top: 1.05rem;
	background-color: var(--primary-color);
	height: 1.05rem;
}

#scores-sticky-trigger {
	height: 1px;
}

div.image {
	margin-right: 1rem;
}

div.image a {
	line-height: 0;
}

div.grid div.audio-player:last-child {
	grid-column: 6 / auto;
}

p.director {
	margin-top: 0.3rem;
}

/********** VIDEO **********/

.inline-video-container {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
  margin-top: 2rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 0.1s ease-out, transform 0.1s ease-out;
  pointer-events: none;
}

div.inline-video-container.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

div.inline-video-container iframe,
div.inline-video-container video {
  width: 100%;
  max-width: 960px;
  max-height: calc(55vh - 3rem);
  aspect-ratio: 16 / 9;
  border: none;
}

button.close-video-button {
  margin-top: 1rem;
  padding: 0.3rem 0.5rem;
  font-size: var(--general-font);
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  transition: 0.1s ease;
}

button.close-video-button:hover {
	background-color: rgba(255, 255, 255, 0.8);
}

div.project.video-expanded {
  z-index: 10;
  position: relative;
}

/********** CREDITS **********/

div.credits-row {
	align-items: center;
}

div#credits-role {
	display: grid;
	grid-template-columns: repeat(5, 1.2rem);
	column-gap: 0.1rem;
}

div#credits-role p {
	text-align: left;
}

div#credits-role p:hover::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	background-color: var(--secondary-color);
	color: var(--primary-color);
	padding: 3px 6px;
	font-size: var(--micro-font);
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 1000;
}

div#credits-role p:nth-child(0n+1):hover::after {
	content: "Music Producer";
	opacity: 1;
	visibility: visible;
}

div#credits-role p:nth-child(0n+2):hover::after {
	content: "Songwriter";
	opacity: 1;
	visibility: visible;
}

div#credits-role p:nth-child(0n+3):hover::after {
	content: "Artist";
	opacity: 1;
	visibility: visible;
}

div#credits-role p:nth-child(0n+4):hover::after {
	content: "Mixer";
	opacity: 1;
	visibility: visible;
}

div#credits-role p:nth-child(0n+5):hover::after {
	content: "Vocalist";
	opacity: 1;
	visibility: visible;
}

/********** FOOTER **********/

footer {
	padding-bottom: 1rem;
}

/********** MEDIA QUERIES **********/

@media (max-width: 1280px) {

	/***** BIO ****/

	div.bio p {
		font-size: 0.6rem;
	}
		div.bio a {
		font-size: 0.6rem;
	}
}

@media (max-width: 1000px) {

	/***** BIO ****/

	div.bio p {
		font-size: 0.7rem;
	}
		div.bio a {
		font-size: 0.7rem;
	}
}

@media (max-width: 768px) { 

	/***** HEADER ****/

	div.header-titles {
		display: flex !important;
		flex-flow: row nowrap;
		justify-content: space-between;
		align-items: center;
		width: 100%;
	}

	div.header-items {
		display: flex !important;
		flex-direction: column;
		width: 100%;
		height: auto;
		position: static;
	}

	div.header-items .menu-container {
		order: 1;
	}

	.mobile-contacts {
		order: 3;
	}

	div.header-items .header-bio {
		order: 2;
		width: 100%;
		padding-top: 0;
		align-items: flex-end;
		text-align: right;
	}

	.menu-title {
		order: 1;
		flex-shrink: 0;
		margin-left: 1rem;
		text-align: right;
		display: block !important;
	}

	div.copyright {
		display: none !important;
	}

	div.header-titles div.elsewhere-header, div.header-titles div.say-hi-header, div.header-items div.elsewhere, div.header-items div.say-hi, div.menu-container+nav, div.main-grid nav {
		display: none !important;
	}

	.mobile-contacts {
		  display: flex !important; 
  justify-content: flex-end;

  flex-direction: column;
  margin-bottom: 0.5rem;
	}

	.mobile-contacts .mobile-elsewhere, .mobile-contacts .mobile-say-hi {
		display: flex;
		flex-direction: column;
		text-align: right;
	}

	/***** BIO ****/	

	div.bio {
		height: auto;
		position: relative;
		justify-content: flex-start;
		align-items: flex-start;
		padding-top: 1rem;
	}

	div.bio-panel.is-open {
		max-height: 1000px;
	}

	div.bio p,
	div.bio a {
		font-size: 0.7rem !important;
	}

	div.bio-item {
		padding: 0;
		width: 100%;
	}

	img.headshot-preview {
		display: none;
	}

	div.bio-arrow {
		display: none;
	}

	/***** GRID ****/		

	.row>div {
		width: 100% !important;
	}

	.row>div.image {
		order: 0;
		margin-right: 0 !important;
		margin-bottom: 0.5rem;
	}

	.row>div:not\(\.image\) {
		order: 1;
		margin-left: 0 !important;
	}

	.row:not\(\:last-child\) {
		margin-bottom: 1.5rem;
	}

	.row {
		display: grid !important;
		grid-template-columns: 1fr 1fr 1fr !important;
		grid-template-rows: auto auto auto;
		gap: 0 0.5rem;
		margin-bottom: 2rem;
	}

	.row.ads-row {
		grid-template-columns: 0.8fr 1.4fr 0.8fr !important;
	}

	.ads-row p.director {
		white-space: nowrap;
	}

	.row.music-row {
		grid-template-columns: 4fr 1fr 1fr !important;
	}

	.row>.image {
		grid-area: 1 / 1 / 2 / -1;
		width: 100%;
		margin: 0 !important;
		padding-bottom: 0.3rem;
	}

	.row>.data:nth-child(0n+2) {
		grid-area: 2 / 1 / 3 / 2;
	}

	.row>.data:nth-child(0n+3) {
		grid-area: 2 / 2 / 4 / 3;
	}

	.row>.data:nth-child(0n+4) {
		display: none !important;
	}

	.row>.data:nth-child(0n+5) {
		grid-area: 2 / 3 / 3 / 4;
		display: flex;
		justify-content: flex-end;
		margin-bottom: 0.5rem;
	}

	div.grid div.audio-player:last-child {
		grid-area: 3 / 3 / 4 / 4;
		text-align: right;
	}

	div.grid div.sync-row div.audio-player:last-child {
		grid-area: 2 / 3 / 3 / 4;
		text-align: right;
	}

	div.grid div#the-beginning div.audio-player:last-child, div.grid div#save-the-children div.audio-player:last-child, div.grid div#jcb div.audio-player:last-child {
		grid-area: 2 / 3 / 3 / 4;
		text-align: right;
	}

	div.grid div.music-row div.audio-player:last-child {
		grid-area: 2 / 3 / 3 / 4;
		margin-bottom: 0.5rem;
		display: block;
	}

	.scores-row.headers.scores-headers, .sync-row.headers.sync-headers, .ads-row.headers.ads-headers, .music-row.headers.music-headers, .credits-row.headers.credits-headers, .credits-headers {
		display: none !important;
	}

	div.header-items div.header-item:nth-child(0n+2), div.header-items div.header-item:nth-child(0n+3), div.header-items div.header-item:nth-child(0n+4) {
		display: none;
	}

	/***** VIDEO ****/	

  div.inline-video-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 2rem 1rem;
    background: black;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    gap: 1.5rem;
  }

  div.inline-video-container iframe,
  div.inline-video-container video {
    width: 100%;
    max-height: 70vh;
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }

  button.close-video-button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: var(--general-font);
  }	

	/***** CREDITS ****/	

	div.credits-row {
		display: block;
		padding-bottom: 1rem;
	}

	.row.credits-row {
	  display: grid !important;
	  grid-template-columns: 2fr 4fr 2fr !important;
	  grid-template-rows: auto !important;
	  gap: 0 !important;
	  margin-bottom: 0 !important;
	  padding: 0.15rem 0 !important;
	  background: none !important;
	  width: 100% !important;
	  position: relative !important;
	}

	.row.credits-row > .credits-data {
	  all: unset !important;
	  display: block !important;
	  font-size: var(--general-font) !important;
	  font-weight: var(--general-weight) !important;
	  line-height: 1.2 !important;
	  width: auto !important;
	  text-align: left !important;
	  margin: 0 !important;
	  padding: 0 !important;
	}

	.credits-row.headers.credits-headers {
	  display: grid !important;
	  position: sticky !important;
	  top: 1.05rem !important;
	  background-color: var(--primary-color) !important;
	  z-index: 500 !important;
	}

	.awards-group .row.credits-row {
	  grid-template-columns: 4fr 3fr 4fr !important;
	}

	.awards-group .credits-row > .credits-data:nth-child(1),
	.awards-group .credits-row > .credits-data:nth-child(2),
	.awards-group .credits-row > .credits-data:nth-child(4) {
	  display: block !important;
	}

	.awards-group .credits-row > .credits-data:nth-child(3),
	.awards-group .credits-row > .credits-data:nth-child(5),
	.awards-group .credits-row > .credits-data:nth-child(6) {
	  display: none !important;
	}

	.awards-group .credits-row > .credits-data:nth-child(4) {
	  text-align: right !important;
	}

	.film-scores-group .row.credits-row {
	  grid-template-columns: 4fr 3fr 4fr !important;
	}

	.film-scores-group .credits-row > .credits-data:nth-child(1),
	.film-scores-group .credits-row > .credits-data:nth-child(2),
	.film-scores-group .credits-row > .credits-data:nth-child(4) {
	  display: block !important;
	}

	.film-scores-group .credits-row > .credits-data:nth-child(3),
	.film-scores-group .credits-row > .credits-data:nth-child(5),
	.film-scores-group .credits-row > .credits-data:nth-child(6) {
	  display: none !important;
	}

	.film-scores-group .credits-row > .credits-data:nth-child(4) {
	  text-align: right !important;
	}

	.sync-group .row.credits-row {
	  grid-template-columns: 4fr 3fr 4fr !important;
	}

	.sync-group .credits-row > .credits-data:nth-child(1),
	.sync-group .credits-row > .credits-data:nth-child(2),
	.sync-group .credits-row > .credits-data:nth-child(5) {
	  display: block !important;
	}

	.sync-group .credits-row > .credits-data:nth-child(3),
	.sync-group .credits-row > .credits-data:nth-child(4),
	.sync-group .credits-row > .credits-data:nth-child(6) {
	  display: none !important;
	}

	.sync-group .credits-row > .credits-data:nth-child(5) {
	  text-align: right !important;
	}

	.ads-group .credits-row > .credits-data:nth-child(1),
	.ads-group .credits-row > .credits-data:nth-child(2),
	.ads-group .credits-row > .credits-data:nth-child(5) {
	  display: block !important;
	}

	.ads-group .credits-row > .credits-data:nth-child(3),
	.ads-group .credits-row > .credits-data:nth-child(4),
	.ads-group .credits-row > .credits-data:nth-child(6) {
	  display: none !important;
	}

	.ads-group .credits-row > .credits-data:nth-child(5) {
	  text-align: right !important;
	}

	.discography-group .credits-row > .credits-data:nth-child(1),
	.discography-group .credits-row > .credits-data:nth-child(2),
	.discography-group .credits-row > .credits-data:nth-child(5) {
	  display: block !important;
	}

	.discography-group .credits-row > .credits-data:nth-child(3),
	.discography-group .credits-row > .credits-data:nth-child(4),
	.discography-group .credits-row > .credits-data:nth-child(6) {
	  display: none !important;
	}

	.discography-group .credits-row > .credits-data:nth-child(5) {
	  text-align: right !important;
	}

	.row.credits-row .credits-data p {
	  display: inline-block;
	}

	section#credits p,
	section#credits a {
	  font-size: 0.5rem;
	}

}
